noble-hashes
A strong pick. 2nd of 10 cryptography and password hashing.
@noble/hashes is an audited, zero-dependency TypeScript library for hashes, MACs and key derivation: SHA-2, SHA-3, BLAKE, HMAC, HKDF, PBKDF2, scrypt and Argon2. It runs in every runtime. For pure-JS hashing and KDFs it is a top choice today. It does not sign or encrypt (its sister packages noble-curves and noble-ciphers do), and on a Node server native Argon2 or bcrypt hashes passwords faster.
Best for: Projects that need audited hashes, HMAC or KDFs that run the same in browsers, Node, Deno, Bun and edge runtimes, without native or WASM builds.
Scores
Overall8.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It is the best audited, cross-runtime pure-JS choice for hashes, HMAC and KDFs. It is maintained actively and growing fast. The score stops short of 9 because it covers only part of the category's job, and because native node-argon2 or bcrypt is a better fit for server-side password hashing.
- github.com/paulmillr/noble-hashes: Audit, features, supply-chain practices
- npm downloadsLast4Weeks: Strong growth above the median
- peers node-argon2: Native Argon2 peer is active and suits server password hashing
GPT-6.2 Sol: 8.1, likely 7.1 to 9.1
Noble-hashes is a strong pick for new projects that need portable, typed hashing, message authentication, or key derivation with a small dependency footprint. Node-argon2 has a better fit for server-side password storage, and libsodium.js covers projects that also need signatures and encryption. Active releases and downstream use support the recommendation, while one maintainer publishes the recent releases and the independent audit covers only part of the current package.
- github.com/paulmillr/noble-hashes/releases: Recent stable releases ship performance and correctness improvements under one publisher.
- github.com/paulmillr/noble-hashes/blob/2.4.0/README.md: Shows portable primitives and the limits of the independent audit.
- github.com/ranisalt/node-argon2: Native Node.js peer supplies password storage and verification APIs.
- github.com/jedisct1/libsodium.js: Cross-runtime peer includes encryption and digital signatures.
- github.com/better-auth/utils/blob/main/src/password.ts: Downstream authentication toolkit imports noble-hashes scrypt directly.
Needed by many5.1
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
Many projects need a hash, an HMAC or a password KDF, but most Node servers can use built-in node:crypto or WebCrypto. This package covers only the hashing and KDF part of the category, not signing or encryption. Its pure-JS, any-runtime approach matters most for browsers, edge code and crypto wallets.
- github.com/paulmillr/noble-hashes: Scope is hashes, MACs and KDFs only, with a WebCrypto wrapper
- category.job: The category also covers signing and encryption, which this package does not do
GPT-6.2 Sol: 5.2, likely 4.1 to 6.3
Hashing and key derivation matter for authentication, wallets, and some file and protocol tooling. The package runs across modern runtimes, but built-in crypto covers many common operations and teams need separate tools for signing and encryption. Browser measurements and runtime surveys give context without measuring how many teams need these particular primitives.
- almanac.httparchive.org/en/2025/security#web-cryptography-api: Browser telemetry puts native digest use at roughly 3% of measured sites.
- survey.stackoverflow.co/2026/technology/data: Node.js is widely used among survey respondents.
- github.com/paulmillr/noble-hashes/blob/2.4.0/README.md: Documents the supported primitives, runtimes, and Web Crypto wrapper.
Helps a lot7.9
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It covers a wide set of algorithms, is tested against official vectors and with fuzzing, ships good types and has a small, tree-shakable footprint. For pure JS it is fast, and faster than crypto-js. Native and WASM tools (hash-wasm, node-argon2) are clearly faster, though, especially for Argon2, and Argon2 is outside the audit.
- github.com/paulmillr/noble-hashes: Features, test methods, v2 type improvements
- cdn.jsdelivr.net/npm/@noble/hashes@2.4.0/README.md: README warns Argon2 is slow in pure JS and recommends scrypt
- socket.dev/npm/package/hash-wasm/overview/^4.9.0: Benchmark: hash-wasm faster; noble faster than crypto-js on SHA-256
- deno.land/x/morax: Third-party benchmark shows WASM keccak about 20x faster than noble
GPT-6.2 Sol: 7.8, likely 6.8 to 8.8
Version 2.4.0 pairs a broad set of hash and key derivation algorithms with TypeScript declarations, clear import examples, and official test vectors. Those examples give coding agents a clear starting point, though common v1 imports still appear in downstream code. Independent benchmarks favor hash-wasm for bulk BLAKE3, and an older Argon2 benchmark favors native code. The exact performance gap on 2.4.0 is uncertain, and node-argon2 provides a simpler password verification workflow.
- github.com/paulmillr/noble-hashes/blob/2.4.0/README.md: Shows typed usage, official test vectors, and v1 import changes.
- github.com/ffedoroff/web-hash/blob/main/hash.md: Independent browser benchmark favors hash-wasm for bulk BLAKE3.
- gist.github.com/ErikMichelson/a9fa23ec2d6ff98a24a7fce8f1f1f44c: Older independent comparison favors native Argon2.
- github.com/ranisalt/node-argon2: Provides password hashing, verification, and rehash checks.
Holds up over time7.9
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 6.5 to 9.0
It is actively maintained, with 81 commits and 3 releases in the last year, only 4 open issues, and a push four days before this review. Releases are kept infrequent on purpose. The Ethereum Foundation funded the early work, and much of the crypto ecosystem depends on it. The main risk is that one person maintains it, and the v2 breaking changes created migration work.
- github commitsLastYear: 81 commits, 3 releases in the last year
- github openIssues: 4 open vs 63 closed issues
- github.com/paulmillr/noble-hashes: Funding by the Ethereum Foundation; v2 ESM-only breaking changes
GPT-6.2 Sol: 7.8, likely 6.7 to 8.9
The project recorded 81 commits and three releases in the last year, ahead of both bcrypt peers, and the maintainer answered a browser compatibility report the day it was filed. Recent releases have improved correctness and performance, while the v2 migration required changes to imports and input types. Recent releases came from one maintainer, and the depth of backup release coverage remains unclear.
- github commitsLastYear, releasesLastYear, pushedAt: 81 commits, three releases, and a November 2026 push.
- peers commitsLastYear: Both bcrypt peers had six or fewer commits.
- github.com/paulmillr/noble-hashes/releases: Recent releases have one publisher and include fixes and a breaking v2 migration.
- github.com/paulmillr/noble-hashes/issues/145: A downstream browser compatibility report received a same-day maintainer response.
Used widely6.8
How many use it, and is that growing?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It had 580M downloads in 4 weeks, up 7.8x from a year earlier, well above the 4.1 median. Most installs come in through viem, ethers, cuid2 and similar packages rather than direct choice. It has 24.9k dependent repos, which beats node-argon2 and noble-curves but is far behind bcrypt and TweetNaCl.
- npm downloadsLast4Weeks: 579.7M vs 74.5M a year ago (7.8x)
- dependents: 24,921 repos and 652 packages
- medianDownloadsRatio: Median ratio is 4.1, so it is gaining ground
- github stars: 945 stars, modest for its usage
GPT-6.2 Sol: 6.1, likely 4.9 to 7.3
Four-week downloads rose 7.8× year over year, well above the 4.1× catalog baseline. Build installs and downstream dependencies such as ethers and noble-curves inflate the install count as a measure of direct choice. The collector found about 25,000 dependent repositories, ahead of node-argon2 and hash-wasm but far behind bcrypt.js. Partial repository coverage and sparse discussion signals leave direct adoption and its growth uncertain.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 580 million versus 74.5 million downloads, or 7.8× versus a 4.1× baseline.
- dependents repos, packages; peers dependentRepos: 24,921 repositories and 652 packages in a partial index.
- github stars; bluesky posts; hackerNews stories: 945 stars and zero matched posts or stories in the collector.
- github.com/ethers-io/ethers.js/blob/v6.17.0/package.json: Ethers pulls in noble-hashes 1.x.
- github.com/paulmillr/noble-curves/blob/2.4.0/package.json: Noble-curves pulls in noble-hashes 2.4.0.
Vouched for7.6
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 5.5 to 8.0
Cure53 audited it, with funding from the Ethereum Foundation and Nomic Labs. Major Ethereum libraries such as viem build on it, and OpenPGP.js keeps a fork of it. The audit is from 2022 and covered v1.0.0, and I found almost no independent user write-ups or survey data.
- jsr.io/@noble/hashes@2.4.0: Audit funding and modules not covered by the audit
- cdn.jsdelivr.net/npm/test-use-viem@0.9.1/CHANGELOG.md: viem depends on @noble/hashes
- github.com/openpgpjs/noble-hashes: OpenPGP.js keeps a fork
- ethers v6 dependencies: ethers v6 depends on @noble/hashes and @noble/curves
GPT-6.2 Sol: 8.1, likely 7.0 to 9.1
MetaMask and ethers declare it as a dependency, and Better Auth uses its scrypt implementation where native scrypt is unavailable. Cure53 independently reviewed early versions of several core primitives. The large wallet integrations still declare 1.x, so their use offers limited evidence for 2.4.0.
- github.com/MetaMask/metamask-extension/blob/main/package.json: The MetaMask browser extension declares a 1.x dependency.
- github.com/ethers-io/ethers.js/blob/v6.17.0/package.json: Ethers v6.17.0 pins noble-hashes 1.3.2.
- github.com/better-auth/better-auth/blob/main/packages/better-auth/src/crypto/password.ts: Better Auth documents noble-hashes scrypt as its portable fallback.
- cure53.de/pentest-report_hashing-libs.pdf: Independent source audit of the early hashing library and related components.
Safe8.6
How safe is it to depend on?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
It has zero runtime dependencies, no advisories, an MIT licence, PGP-signed commits, and releases through token-less CI with trusted publishing and provenance. There is no Scorecard data. Releases depend on one maintainer, and its large transitive reach would make it a valuable target for attackers.
- npm dependencies: 0 runtime dependencies
- advisories total: 0 advisories
- scorecard: No Scorecard data
- github.com/paulmillr/noble-hashes: Signed commits, trusted publishing, provenance
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
The package is MIT-licensed, has zero runtime dependencies, and documents tokenless npm publishing through GitHub Actions. The 2.4.0 GitHub release is signed and includes security and correctness fixes, and the OSV snapshot lists zero advisories. The independent Cure53 audit predates Argon2 and excluded BLAKE3, while the missing Scorecard limits independent visibility into repository controls.
- npm dependencies, license; advisories total; scorecard: Zero runtime dependencies, MIT license, zero listed OSV advisories, and no Scorecard result.
- github.com/paulmillr/noble-hashes/blob/2.4.0/README.md#security: Documents Trusted Publishing, audit scope, and fuzz testing.
- github.com/paulmillr/noble-hashes/releases/tag/2.4.0: Shows a verified signed tag and records security fixes.
- cure53.de/pentest-report_hashing-libs.pdf: Describes the independent audit scope and records fixes to early findings.
Good
- Zero dependencies, tree-shakable ESM and a small bundle (about 2.8 KB gzipped for sha256 alone).
- Cure53 audit, official test vectors, property tests and fuzzing in CI.
- One consistent, well-typed API that covers SHA-2/3, BLAKE2/3, HMAC, HKDF, PBKDF2, scrypt and Argon2.
- Runs in all major JS runtimes, and the ecosystem's crypto stack (viem, ethers) builds on it.
Bad
- Argon2 is slow in pure JS and was not covered by the audit; the README itself points to scrypt instead.
- Does not sign or encrypt; you need noble-curves or noble-ciphers for that.
- v2 is ESM-only, needs Node 20.19+, rejects string inputs and moved modules, so upgrades from v1 take work.
- The only audit dates from January 2022 and covered v1.0.0; newer code relies on self-audits.
The numbers
- npm downloads, 4 weeks
- 580M ×7.8 in a year
- GitHub stars
- 945
- Commits, 12 months
- 81
- npm version
- 2.4.0 Aug 2026
- Versions, 12 months
- 3
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (paulmillr/noble-hashes), npm (@noble/hashes), OSV and the OpenSSF Scorecard.
Cryptography and password hashing
- 8.2noble-curves
- 8.1noble-hashes
- 7.8node-argon2
- 7.4libsodium.js
- 6.5hash-wasm
- 6.2bcrypt.js
- 5.4node.bcrypt.js
- 4.9Forge
- 4.5TweetNaCl.js
- 1.7crypto-js