dcodeIO/bcrypt.js
Optimized bcrypt in JavaScript with zero dependencies, with TypeScript support. observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 93
- Release rhythm 54
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2.0
- age_days: 4872
- days_rel: 304
- days_push: 44
- n_releases_24m: 5
Adoption not part of the score
3799 stars · 289 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A zero-dependency, pure JavaScript implementation of the bcrypt password hashing algorithm with TypeScript support. It is API-compatible with the native C++ bcrypt Node.js binding and also works in the browser.
Use cases
- hash user passwords in a Node.js app without native compilation
- verify passwords against bcrypt hashes in JavaScript
- add password hashing to a browser-based application
- replace the native bcrypt module with a pure JS fallback
- generate salted password hashes with configurable work factor
When to choose
- you need bcrypt password hashing without native build dependencies
- your app runs in the browser or in environments where compiling C++ addons is impractical
- you want a drop-in replacement for the native bcrypt Node.js binding
When to avoid
- you need maximum hashing throughput, since the pure JS implementation is about 30% slower than native bcrypt
- you need to hash inputs longer than 72 bytes
- your platform supports native modules and performance is critical
Facets
library · maturity stable
auth cryptography security security web-development developer-tools browser cross-platform bcrypt password-hashing zero-dependencies typescript pure-javascript nodejs
1 source
- readme: https://github.com/dcodeIO/bcrypt.js · fetched 2026-08-28 · 158dd9e668ef
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dcodeIO/bcrypt.js | main | 81 |
For agents
markdown · JSON · MCP: product_card(name="dcodeIO/bcrypt.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem