IntelligenceAlgorithmsbcrypt
bcrypt
An adaptive password hashing function based on the Blowfish cipher, published by Provos and Mazières at USENIX 1999, with a cost factor that can be raised over time. It is a long-standing default in many web frameworks and only uses the first 72 bytes of a password. Grover's search would roughly halve its effective security, so 256-bit parameters stay adequate, though for any password hash the strength of the password matters most.
In short
What a quantum computer changes.
- Quantum effect
- Weakened by Grover's search
- Family
- SymmetricRests on Blowfish key schedule cost.
- What it means
- Grover's algorithm searches an unstructured space in roughly the square root of the usual number of steps. Against a symmetric key or a hash preimage, that roughly halves the effective security in bits: a 128-bit key gives about 64 bits of security against it. In practice the answer is size, not replacement. Keys and outputs of 256 bits stay adequate. Grover's search also needs a long, sequential run on a fault-tolerant machine and does not split well across many machines, so the effect is a smaller margin, not a break.
This describes the family, not any project that uses it.
7 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| hash-wasmnpm | Hash and password-hashing functions compiled to WebAssembly, including SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, RIPEMD-160, HMAC, PBKDF2, scrypt, bcrypt and Argon2. |
| bcryptnpm | Native Node.js addon for bcrypt password hashing and verification, built with node-gyp. |
| bcryptjsnpm | Pure JavaScript bcrypt password hashing, compatible with the native bcrypt package. |
| bcrypt-nodejsnpm | Old pure JavaScript bcrypt password hashing library for Node.js. |
| @node-rs/bcryptnpm | Node.js binding to a Rust bcrypt implementation, built with napi-rs. |
| botancrates.io | Rust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms. |
| bcryptcrates.io | bcrypt password hashing and verification. |
2 listed
Sources
- Provos, Mazières: A Future-Adaptable Password Scheme (USENIX 1999)usenix.orgRetrieved 3 December 2026
- Provos, Mazières: A Future-Adaptable Password Scheme (PDF)usenix.orgRetrieved 3 December 2026
Full record
- Identifier
- bcrypt
- Kind
- password-hash
- Family
- Symmetric
- Rests on
- Blowfish key schedule cost
- Quantum effect
- Weakened by Grover's search
Standards
No standard is listed for this algorithm.