UNPKG

jinaga

Version:

Data management for web and mobile applications.

14 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.computeStringHash = void 0; const base64_1 = require("@stablelib/base64"); const sha512_1 = require("@stablelib/sha512"); const utf8_1 = require("@stablelib/utf8"); function computeStringHash(str) { const bytes = (0, utf8_1.encode)(str); const result = (0, sha512_1.hash)(bytes); const b64 = (0, base64_1.encode)(result); return b64; } exports.computeStringHash = computeStringHash; //# sourceMappingURL=encoding.js.map