aozhiwei 0a973d12e3 1
2022-01-27 17:32:21 +08:00

11 lines
355 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function createHashFunction(hashConstructor) {
return function (msg) {
var hash = hashConstructor();
hash.update(msg);
return Buffer.from(hash.digest());
};
}
exports.createHashFunction = createHashFunction;
//# sourceMappingURL=hash-utils.js.map