UNPKG

jose

Version:

Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies

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