* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} * @abstract * @param {Encoding=} encoding encoding of the return value * @returns {string | Buffer} digest
(encoding)
| 59 | * @returns {string | Buffer} digest |
| 60 | */ |
| 61 | digest(encoding) { |
| 62 | const AbstractMethodError = require("../errors/AbstractMethodError"); |
| 63 | |
| 64 | throw new AbstractMethodError(); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | module.exports = Hash; |
no test coverage detected