# noble-hashes: 8.1 out of 10

A strong pick. 2nd of 10 in [Cryptography and password hashing](https://elestia.ai/opensource/crypto/index.md).

@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

- **Overall: 8.1** (likely 7.1 to 8.8)
  - Claude Opus 5.5 (8.0): 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.
  - GPT-6.2 Sol (8.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.
- **Needed by many: 5.1** (likely 4.1 to 6.4)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (5.2): 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.
- **Helps a lot: 7.9** (likely 6.9 to 8.9)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.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.
- **Holds up over time: 7.9** (likely 6.6 to 9.0)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.8): 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.
- **Used widely: 6.8** (likely 5.7 to 7.9)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.1): 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.
- **Vouched for: 7.6** (likely 6.3 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.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.
- **Safe: 8.6** (likely 7.6 to 9.4)
  - Claude Opus 5.5 (9.0): 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.
  - GPT-6.2 Sol (8.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.

## 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

- Downloads, 4 weeks: 580M
- In a year: ×7.8
- GitHub stars: 945
- Commits, 12 months: 81
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/paulmillr/noble-hashes
- npm: https://www.npmjs.com/package/@noble/hashes

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
