6 lines
234 B
JavaScript
6 lines
234 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const crypto_1 = require("crypto");
|
||
|
const digest = (algorithm, data) => (0, crypto_1.createHash)(algorithm).update(data).digest();
|
||
|
exports.default = digest;
|