Skip to content
NOUMENResearch
Network
Engineering
, home page

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

Packages that provide bcrypt
PackageProvides
hash-wasmnpmHash 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.
bcryptnpmNative Node.js addon for bcrypt password hashing and verification, built with node-gyp.
bcryptjsnpmPure JavaScript bcrypt password hashing, compatible with the native bcrypt package.
bcrypt-nodejsnpmOld pure JavaScript bcrypt password hashing library for Node.js.
@node-rs/bcryptnpmNode.js binding to a Rust bcrypt implementation, built with napi-rs.
botancrates.ioRust 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.iobcrypt password hashing and verification.

2 listed

Sources

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.