mirror of
https://github.com/danbulant/jose
synced 2026-05-19 20:38:42 +00:00
5 lines
234 B
JavaScript
5 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;
|