Packages

@noble/hashes

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

Your version

1.8.0

21 Apr 2025Where it was published

In short

7 deprecated3 changed

  • Deprecated

    sha256 became sha2 (which already existed for several releases)

  • Deprecated

    sha512 became sha2

  • Deprecated

    _assert became utils

  • Deprecated

    blake2b became blake2

  • Deprecated

    blake2s became blake2

  • Deprecated

    ripemd160 became legacy (to signify its low security level 2^80)

  • Deprecated

    sha1 became legacy

Release note

Preparation for v2

The release contains bugfixes and a few improvements which pave the way for upcoming v2.0.

  • Modules are now available with .js extension

    • Old: @noble/hashes/sha2

    • New: @noble/hashes/sha2.js

    • Old path is still available

    • This simplifies working in browsers natively without transpilers

  • Refactor core functionality, remove duplicate code

  • Decrease package size

Deprecations

In v2, some modules will be removed. For example, sha256 will become sha2. In v1.8, the old names still exist, but are marked as deprecated, to simplify upgrade path.

One of the reasons for moving those was the fact sha384 resided in sha512, sha224 in sha256 - which was confusing. New naming scheme simplifies reasoning and decreases amount of modules.

  • Deprecated

    sha256 became sha2 (which already existed for several releases)

  • Deprecated

    sha512 became sha2

  • Deprecated

    _assert became utils

  • Deprecated

    blake2b became blake2

  • Deprecated

    blake2s became blake2

  • Deprecated

    ripemd160 became legacy (to signify its low security level 2^80)

  • Deprecated

    sha1 became legacy

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.