# hash-wasm: 6.5 out of 10

Reasonable, with limits. 5th of 10 in [Cryptography and password hashing](https://elestia.ai/opensource/crypto/index.md).

hash-wasm is a zero-dependency WebAssembly hashing library. It covers about 30 hashes and checksums, plus Argon2, bcrypt, scrypt, PBKDF2 and HMAC, for browsers and Node.js, and it is among the fastest JavaScript-side options. It is a good pick for fast hashing or client-side Argon2, but it does no encryption or signing, and one maintainer works on it at a slow pace.

**Best for:** Browser or cross-runtime apps that need fast hashing, checksums or Argon2/bcrypt without native modules.

## Scores

- **Overall: 6.5** (likely 5.5 to 7.6)
  - Claude Opus 5.5 (6.0): It is a capable and fast hashing library, and a solid choice for Argon2 or bulk hashing in the browser. But it covers only hashing, and one maintainer keeps it going with little activity. noble-hashes is better maintained, audited and works under strict CSP. On Node, node-argon2 or bcrypt are more common for server-side password hashing.
  - GPT-6.2 Sol (7.0): Choose hash-wasm for browser-side Argon2id or incremental file hashing when the target runtime permits WebAssembly. For Node-only password storage, node-argon2 offers a simpler API with Argon2id defaults, and libsodium.js covers signing and encryption. The sparse release cadence and weak release controls keep hash-wasm from being the category default.
- **Needed by many: 4.8** (likely 3.7 to 5.9)
  - Claude Opus 5.5 (5.0): Many apps need hashing or password hashing, but this covers only part of the category's job: it has no signing or encryption. On Node, node:crypto and native argon2/bcrypt cover most hashing needs. That leaves hash-wasm mainly for browser and cross-runtime use.
  - GPT-6.2 Sol (4.5): Password hashing is relevant to many apps with their own accounts. Browser-side Argon2id and incremental file hashing serve a smaller group, and built-in APIs already cover common digests, signing and encryption. Browser measurements give only a partial view because they miss server-side password hashing.
- **Helps a lot: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): It is fast and broad, with types, streaming and small bundles, and its output matches noble-hashes byte for byte. Its limits are WebAssembly-only operation (it breaks under strict CSP), an async-only API, and some open bugs about memory and mutex handling. It does no encryption at all. The speed figures come mostly from the project's own benchmarks.
  - GPT-6.2 Sol (7.3): Version 4.13.0 has typed one-shot and incremental APIs, documented examples and encoded Argon2 and bcrypt verification. Immich measured a substantial large-file speedup over noble-hashes, while a competing Argon2 implementation measured faster password hashing in its own tests. Restricted WebAssembly runtimes and a reported SHA-256 hang after failed initialization limit reliability, and performance varies by algorithm and runtime.
- **Holds up over time: 5.5** (likely 4.0 to 6.9)
  - Claude Opus 5.5 (5.0): A single maintainer made 12 commits and 1 release in the last year. Only 9 pull requests have ever been merged, and issues often get no reply. The v4 API has been stable since 2020 with no breaking changes, and a release came out this month. There is no funding and no co-maintainer, which is the main risk.
  - GPT-6.2 Sol (5.9): The November release refreshed the compiler and CI, fixed browser typings and shipped a reported bcrypt fix within a day. The project had 12 commits and one release in the past year, following roughly two years between releases, and node-argon2 and noble-hashes had considerably more commit activity. The small contributor base and sparse release history make future response times hard to predict.
- **Used widely: 5.2** (likely 4.2 to 6.3)
  - Claude Opus 5.5 (5.5): Downloads were 11.8M in the last 4 weeks, up from 2.0M a year before. That ratio of 5.9 is above the 4.1 median, so it is gaining ground. Much of this is probably transitive installs. Its 7,629 dependent repos are about level with node-argon2 and libsodium.js, but far below bcrypt and noble-hashes.
  - GPT-6.2 Sol (4.9): Four-week npm downloads rose from 2.0 million to 11.8 million, or 5.94×, ahead of the catalog median of 4.1× and behind node-argon2 and noble-hashes. The 7,629 tracked dependent repositories are near node-argon2 and libsodium.js and far below either bcrypt package. Automated and transitive installs inflate npm counts, CDN use escapes them, and the bundle recorded no Hacker News or Bluesky activity.
- **Vouched for: 5.1** (likely 3.7 to 6.4)
  - Claude Opus 5.5 (4.0): Third-party guides name it, with noble-hashes, as a maintained browser Argon2 choice. The node-rs benchmarks list it as a JS comparison point. There are no Hacker News stories, no Bluesky posts, no survey presence and no named production users. Most performance evidence is self-published.
  - GPT-6.2 Sol (6.1): Immich adopted it for browser upload hashing and measured a speedup against its previous implementation. A 2024 review documents Argon2 adoption in Swiss Post’s e-voting cryptography component, and Selfstore documents using it for password-based key derivation. These are credible uses across different workloads, with little recent survey or independently audited evidence about the library itself.
- **Safe: 6.2** (likely 5.0 to 7.3)
  - Claude Opus 5.5 (6.5): It has zero dependencies, no advisories ever and an MIT licence. The OpenSSF Scorecard is 3.6, with no code review, branch protection, signed releases, security policy or fuzzing. One person publishes prebuilt WebAssembly that is inlined in the package, which is hard to audit.
  - GPT-6.2 Sol (5.8): The MIT license and zero runtime dependencies limit supply-chain exposure. The OSV snapshot lists zero advisories, and 4.13.0 fixed a publicly reported bcrypt password truncation bug the day after it was reported. The 3.6 OpenSSF Scorecard flags weak review and workflow permissions and gives zero marks for branch protection, fuzzing, a security policy and signed releases. npm lists two collaborators, and the published artifact’s build provenance remains unverified in this review.

## Good

- One package covers many algorithms: SHA-2/3, BLAKE2/3, xxHash, CRC, plus Argon2, bcrypt, scrypt and PBKDF2.
- In its own benchmarks it is clearly faster than pure-JS peers, and about twice as fast as argon2-browser for Argon2id.
- It has zero dependencies, ships TypeScript types and tree-shakes into small per-algorithm bundles.
- It supports streaming and incremental hashing, and can save and restore hash state.

## Bad

- It only hashes: there is no encryption, signing or key exchange.
- It needs WebAssembly, so it fails under a strict CSP that does not allow wasm-unsafe-eval. That issue has been open since 2020.
- One maintainer releases about once a year, and many issues and pull requests sit with no reply.
- The API is async-only, and a recent open bug reports that a failed init leaves later calls hanging forever.

## The numbers

- Downloads, 4 weeks: 12M
- In a year: ×5.9
- GitHub stars: 1.2k
- Commits, 12 months: 12
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/Daninet/hash-wasm
- npm: https://www.npmjs.com/package/hash-wasm

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.
