sha256.js 975 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.sha224 = exports.SHA224 = exports.sha256 = exports.SHA256 = void 0;
  4. /**
  5. * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
  6. *
  7. * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
  8. * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
  9. *
  10. * Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
  11. * @module
  12. * @deprecated
  13. */
  14. const sha2_ts_1 = require("./sha2.js");
  15. /** @deprecated Use import from `noble/hashes/sha2` module */
  16. exports.SHA256 = sha2_ts_1.SHA256;
  17. /** @deprecated Use import from `noble/hashes/sha2` module */
  18. exports.sha256 = sha2_ts_1.sha256;
  19. /** @deprecated Use import from `noble/hashes/sha2` module */
  20. exports.SHA224 = sha2_ts_1.SHA224;
  21. /** @deprecated Use import from `noble/hashes/sha2` module */
  22. exports.sha224 = sha2_ts_1.sha224;
  23. //# sourceMappingURL=sha256.js.map