You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sha512Half.js 395B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const crypto_1 = require("crypto");
  4. const HASH_SIZE = 64;
  5. function sha512Half(hex) {
  6. return (0, crypto_1.createHash)('sha512')
  7. .update(Buffer.from(hex, 'hex'))
  8. .digest('hex')
  9. .toUpperCase()
  10. .slice(0, HASH_SIZE);
  11. }
  12. exports.default = sha512Half;
  13. //# sourceMappingURL=sha512Half.js.map