# Cryptography and password hashing

Hash passwords, and sign and encrypt data. 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.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [noble-curves](https://elestia.ai/opensource/crypto/noble-curves/index.md) | 8.2 | 4.0 | 8.6 | 7.9 | 6.1 | 8.6 | 8.3 | Projects that need audited, dependency-light signatures or key exchange (wallets, E2E messaging, PGP) that run the same in browsers, Node, Deno and Bun. |
| 2 | [noble-hashes](https://elestia.ai/opensource/crypto/noble-hashes/index.md) | 8.1 | 5.1 | 7.9 | 7.9 | 6.8 | 7.6 | 8.6 | 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. |
| 3 | [node-argon2](https://elestia.ai/opensource/crypto/argon2/index.md) | 7.8 | 4.5 | 8.3 | 7.1 | 5.9 | 6.8 | 7.1 | Node.js backends that store user passwords and want Argon2id with safe defaults and a simple hash/verify API. |
| 4 | [libsodium.js](https://elestia.ai/opensource/crypto/libsodium/index.md) | 7.4 | 5.2 | 7.6 | 7.1 | 5.1 | 6.4 | 6.9 | Teams that want libsodium's complete, audited primitives (secretbox, box, sign, secretstream, Argon2) with the same API in browsers and on servers. |
| 5 | [hash-wasm](https://elestia.ai/opensource/crypto/hash-wasm/index.md) | 6.5 | 4.8 | 7.2 | 5.5 | 5.2 | 5.1 | 6.2 | Browser or cross-runtime apps that need fast hashing, checksums or Argon2/bcrypt without native modules. |
| 6 | [bcrypt.js](https://elestia.ai/opensource/crypto/bcryptjs/index.md) | 6.2 | 5.2 | 6.6 | 5.2 | 7.5 | 6.5 | 6.6 | Teams that need bcrypt, or compatibility with existing bcrypt hashes, where native addons cannot be built, such as serverless functions, restricted build images or non-Node runtimes. |
| 7 | [node.bcrypt.js](https://elestia.ai/opensource/crypto/bcrypt/index.md) | 5.4 | 4.9 | 6.2 | 4.4 | 6.9 | 5.6 | 6.0 | Node.js server teams that already store bcrypt hashes and want the fastest bcrypt verification on a standard Linux, macOS or Windows host. |
| 8 | [Forge](https://elestia.ai/opensource/crypto/node-forge/index.md) | 4.9 | 4.4 | 5.4 | 5.4 | 6.3 | 5.3 | 4.7 | Existing codebases that need pure-JS PKCS#12, X.509 or legacy TLS handling where native Web Crypto or node:crypto cannot be used. |
| 9 | [TweetNaCl.js](https://elestia.ai/opensource/crypto/tweetnacl/index.md) | 4.5 | 4.1 | 5.7 | 3.1 | 5.8 | 5.6 | 6.1 | Existing codebases that already use NaCl box or sign through TweetNaCl and want a frozen, dependency-free API. |
| 10 | [crypto-js](https://elestia.ai/opensource/crypto/crypto-js/index.md) | 1.7 | 5.2 | 3.4 | 0.7 | 5.8 | 2.8 | 2.4 | Nobody starting new work. Keep it only in legacy code that you plan to move to Web Crypto, node:crypto or noble-hashes. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| noble-curves | 196M | ×5.5 | 973 | 118 | Aug 2026 | 0 |
| noble-hashes | 580M | ×7.8 | 945 | 81 | Aug 2026 | 0 |
| node-argon2 | 14M | ×7.1 | 2.2k | 51 | Nov 2026 | 0 |
| libsodium.js | 30M | ×5.7 | 1.2k | 155 | Apr 2026 | 0 |
| hash-wasm | 12M | ×5.9 | 1.2k | 12 | Nov 2026 | 0 |
| bcrypt.js | 79M | ×3.8 | 3.8k | 0 | Nov 2025 | 0 |
| node.bcrypt.js | 33M | ×2.8 | 7.8k | 6 | May 2025 | 0 |
| Forge | 218M | ×2.2 | 5.4k | 97 | Nov 2026 | 28 |
| TweetNaCl.js | 202M | +99% | 1.9k | 0 | Feb 2020 | 0 |
| crypto-js | 107M | ×2.6 | 16k | 0 | Oct 2023 | 1 |

All categories: https://elestia.ai/opensource/index.md
