# dcodeIO/bcrypt.js

Optimized bcrypt in JavaScript with zero dependencies, with TypeScript support.

Repository: https://github.com/dcodeIO/bcrypt.js
Canonical: https://ross.abutalabs.com/products/bcryptjs
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: javascript, bcrypt, authentication
Last push: 2026-07-20T20:59:39+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 54, longevity 100
- inputs: {"age_days": 4872, "days_push": 44, "days_rel": 304, "gap_med": 2.0, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3799, forks 289 (observed 2026-08-28T04:08:20.044997+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: auth, cryptography, security
- domain: security, web-development, developer-tools
- platform: browser, cross-platform
- tags: bcrypt, password-hashing, zero-dependencies, typescript, pure-javascript, nodejs

## Member repositories
- dcodeIO/bcrypt.js (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:20.044997+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:54.182724+00:00, confidence not recorded.
  - readme: https://github.com/dcodeIO/bcrypt.js (fetched 2026-08-28T04:08:20.044997+00:00, sha 158dd9e668ef)
- Data as of 2026-08-30T08:39:29.467469+00:00.
