Skip to content

bcrypt

Secure

bcrypt is a password hashing function based on the Blowfish cipher. It includes a built-in salt and configurable cost factor, making it intentionally slow to resist brute-force attacks. It has been the industry standard for password hashing since 1999.

What is bcrypt?

bcrypt is a secure cryptographic hash algorithm that produces a 184 bits (60 character encoded string) output. bcrypt is a password hashing function based on the Blowfish cipher. It includes a built-in salt and configurable cost factor, making it intentionally slow to resist brute-force attacks. It has been the industry standard for password hashing since 1999. It is classified as slow (intentional) in performance and commonly used for password hashing and storage and user authentication systems.

Output Length

184 bits (60 character encoded string)

Speed

Slow (Intentional)

Security

Secure

Performance

Intentionally slow — designed to take ~100ms per hash with a typical cost factor. Speed is adjustable via the cost parameter.

Use Cases

Example Hash

Input:

MyPassword123

bcrypt Output:

$2b$12$LJ3m4ys3Lg2VYlWIGbGOs.0RwlRmySTAupJhEVkNfZgvXExWTBHaS

Try bcrypt Password Hasher

Hash and verify passwords with bcrypt directly in your browser via WebAssembly. Free, instant, and 100% private.

Try bcrypt Now →

Related Algorithms

Argon2 Recommended
Configurable (typically 256 bits / 32 bytes)
scrypt Secure
Configurable (typically 256 bits / 32 bytes)
PBKDF2 Secure
Configurable (depends on underlying hash function)

Related Reading

SHA-256 vs SHA-512 vs MD5: Hash Algorithm Comparison → How to Create a Strong Password in 2026 → What Is JWT and How It Works →