Packages

@noble/hashes

2.4.0 · 27 Aug 2026MIT155.8M / weekRepositoryHomepagenpmAtom feed

Your version

2.2.0

11 Apr 2026Where it was published

2.4.0 is the newest release of 2.x.

In short

1 new2 fixed4 changed

Release note

  • March 2026 self-audit (all files): no major issues found

    • Audited for spec compliance and security

    • Fix: dkLen=0 handling in pbkdf2, blake2, turboshake, kt

    • Fix: parallelHash with blockLen=0

    • Fix: argon2 progress callback now reaches 100%

    • Improve: digestInto no longer returns a value (better performance)

    • Improve: argon2, blake2 support non-4-divisible dkLen

  • Fix all Byte Array types, to ensure proper work in both TypeScript 5.6 & TypeScript 5.9+

    • TS 5.6 has Uint8Array, while TS 5.9+ made it generic Uint8Array<ArrayBuffer>

    • This creates incompatibility of code between versions

    • Previously, it was hard to use and constantly emitted errors similar to TS2345

    • See typescript#62240 for more context

  • sha3: speed-up by up to 50%. Contributed

  • Fix compilation issues on TypeScript v6

  • Make package Big Endian friendly. All tests pass on s390x

  • Improve tree-shaking, reduce bundle sizes

  • Add massive amounts of documentation everywhere

(We're skipping v2.1, to align with other noble packages)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.