* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} * @param {Encoding=} encoding encoding of the return value * @returns {string | Buffer} digest
(encoding)
| 69 | * @returns {string | Buffer} digest |
| 70 | */ |
| 71 | digest(encoding) { |
| 72 | return Buffer.from(`@webpack-debug-digest@${this.string}`).toString("hex"); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | module.exports = DebugHash; |