UNPKG

365 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const crypto_1 = require("crypto");
4const sha512Half = (hex) => {
5 return crypto_1.createHash('sha512')
6 .update(Buffer.from(hex, 'hex'))
7 .digest('hex')
8 .toUpperCase()
9 .slice(0, 64);
10};
11exports.default = sha512Half;
12//# sourceMappingURL=sha512Half.js.map
\No newline at end of file