hash-wasm
Reasonable, with limits. 5th of 10 cryptography and password hashing.
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
Overall6.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- peers noble-hashes commitsLastYear: 81 commits vs 12
- github.com/Daninet/hash-wasm: Broad algorithm set with speed lead
- mojoauth.com/security-guides/argon2-in-javascript-in-browser: Noble preferred where CSP blocks wasm
GPT-6.2 Sol: 7.0, likely 5.9 to 8.1
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.
- github.com/Daninet/hash-wasm/blob/v4.13.0/README.md: Cross-runtime password hashing and incremental hashing in the stable release.
- github.com/immich-app/immich/pull/30107: Measured upload hashing gains in a downstream project.
- github.com/ranisalt/node-argon2: Native Node.js library with Argon2id defaults and password verification.
- github.com/jedisct1/libsodium.js: Broader browser and server cryptography suite.
- github.releasesLastYear: One release in the past year.
- scorecard: Weak project and release safeguards.
Needed by many4.8
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- github.com/Daninet/hash-wasm: Covers hashes, checksums, KDFs and HMAC only
- mojoauth.com/security-guides/argon2-in-javascript-in-browser: Browser Argon2 is its main password-hashing use
GPT-6.2 Sol: 4.5, likely 3.4 to 5.7
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.
- github.com/Daninet/hash-wasm/blob/v4.13.0/README.md: Browser and Node.js hashing, password derivation and incremental APIs.
- almanac.httparchive.org/en/2025/security#web-cryptography-api: Native digest observed on about 3% of measured mobile sites.
- nodejs.org/api/crypto.html: Recent Node.js releases include native Argon2 and general cryptography.
Helps a lot7.2
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github.com/Daninet/hash-wasm: Self-reported benchmarks: Argon2id 438 vs 213 ops/s, PBKDF2 588 vs 395 for noble
- github.com/Daninet/hash-wasm/issues: Open issues on CSP, a memory leak and a mutex hang
- mojoauth.com/security-guides/argon2-in-javascript-in-browser: Outputs match noble-hashes; suggests noble where CSP blocks wasm
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 7.3, likely 6.2 to 8.4
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.
- github.com/Daninet/hash-wasm/blob/v4.13.0/README.md: Typed APIs, incremental examples and encoded password verification.
- github.com/immich-app/immich/pull/30107: Immich measured about 1.68× faster large-file SHA-1 hashing.
- github.com/phi-ag/argon2: A competing implementation measured 1.68–2.07× faster Argon2 hash and verify.
- github.com/Daninet/hash-wasm/discussions/56: A user reports that the stock package fails in Cloudflare Workers.
- github.com/Daninet/hash-wasm/issues/89: Open report of later SHA-256 calls hanging after initialization fails.
Holds up over time5.5
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
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.
- github commitsLastYear: 12 commits, 1 release, 4 contributors
- github mergedPullRequests: 9 merged against 7 open
- security.snyk.io/package/npm/hash-wasm: No funding or contributing guide
GPT-6.2 Sol: 5.9, likely 4.5 to 7.2
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.
- github: 12 commits, one release and four contributors in the collector data.
- peers: node-argon2 had 51 commits and noble-hashes had 81 in the past year.
- npmjs.com/package/hash-wasm?activeTab=versions: Roughly two years between 4.12.0 and 4.13.0.
- github.com/Daninet/hash-wasm/releases/tag/v4.13.0: November release refreshed the build and fixed browser typings and bcrypt.
- github.com/Daninet/hash-wasm/issues/84: Reported November 6 and closed with the fix November 7.
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- npm downloadsLast4Weeks: 11.8M vs 2.0M a year earlier
- dependents repos: 7,629 repos, 129 packages
- github stars: 1,175 stars
GPT-6.2 Sol: 4.9, likely 3.8 to 6.0
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.
- npm: 11,782,822 downloads versus 1,984,989 in the same period a year earlier.
- medianDownloadsRatio: Catalog median growth was 4.1×.
- dependents: 7,629 tracked repositories and 129 tracked npm packages.
- peers: Similar tracked use to node-argon2 and libsodium.js, far below bcrypt.
- bluesky: No tracked posts linking to the repository.
- hackerNews: No tracked stories about the project.
- jsdelivr.com/package/npm/hash-wasm: Offers direct CDN delivery outside npm install counts.
Vouched for5.1
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 2.5 to 5.5
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.
- mojoauth.com/security-guides/argon2-in-javascript-in-browser: Recommended as a maintained choice
- github.com/napi-rs/node-rs/issues/1041: Listed in a JS benchmark group
- hackerNews stories / bluesky posts: Zero stories and zero posts
GPT-6.2 Sol: 6.1, likely 4.9 to 7.3
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.
- github.com/immich-app/immich/pull/30107: Adopted for upload hashing with a pure-JavaScript fallback.
- bk.admin.ch/dam/bk/en/dokumente/pore/E_Voting/Examination_reports_August2024/Scopes%201%20and%202%20Final%20Report%20BFH%2025.07.2024.pdf.download.pdf/Scopes%201%20and%202%20Final%20Report%20BFH%2025.07.2024.pdf: Bern University of Applied Sciences documents the 2024 Argon2 integration.
- github.com/selfstoredev/selfstore/blob/main/CHANGELOG.md: Selfstore ships hash-wasm Argon2id in its key derivation worker.
Safe6.2
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- advisories total: 0 advisories
- scorecard score: 3.6; weak on review, signing and branch protection
- npm dependencies: 0 dependencies
- security.snyk.io/package/npm/hash-wasm: No known vulnerabilities
GPT-6.2 Sol: 5.8, likely 4.5 to 7.0
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.
- npm: MIT license and zero runtime dependencies.
- advisories: No OSV advisories in the collection.
- scorecard: 3.6 overall with weak review and several zero-rated controls.
- github.com/Daninet/hash-wasm/issues/84: Public bcrypt bug report and next-day closure.
- github.com/Daninet/hash-wasm/releases/tag/v4.13.0: Shipped bcrypt fix and regression tests.
- npmjs.com/package/hash-wasm: npm package listing shows two collaborators.
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
- npm downloads, 4 weeks
- 12M ×5.9 in a year
- GitHub stars
- 1.2k
- Commits, 12 months
- 12
- npm version
- 4.13.0 Nov 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.6 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (Daninet/hash-wasm), npm (hash-wasm), 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