Bcrypt Hash & Verify

Generate a bcrypt password hash, or verify a password against one.

Computed on the server and never stored. Don’t hash a password you actively use.

Frequently asked questions

What is bcrypt?

Bcrypt is a password-hashing function designed to be deliberately slow, which makes brute-force attacks expensive. It automatically includes a random salt, so identical passwords produce different hashes.

What is the cost factor?

The cost (or work factor) controls how slow the hash is. Each step up roughly doubles the time. A cost of 10–12 is a common balance between security and speed.

How do I verify a password?

Switch to verify mode, paste the password and the stored bcrypt hash, and the tool reports whether they match — the same check your application performs at login.

Is it safe to hash a real password here?

The hash is computed on our server over HTTPS and never stored, but for a password you actually use, prefer generating it in your own environment.

What is the difference between bcrypt and a plain SHA-256 hash?

A fast hash like SHA-256 can be guessed billions of times per second, whereas bcrypt is deliberately slow and salted, making large-scale password cracking far more expensive. Use bcrypt for passwords, not a bare fast hash.

What is a salt and why does bcrypt include one?

A salt is random data mixed into each hash so that identical passwords produce different results and precomputed rainbow tables are useless. Bcrypt generates and stores the salt inside the hash automatically.

Why do bcrypt hashes have a 72-character input limit?

The bcrypt algorithm only processes the first 72 bytes of the input, so anything beyond that is ignored. For very long passphrases, some systems pre-hash the input before passing it to bcrypt.

How do I choose a good bcrypt cost factor?

Pick the highest cost your server can tolerate for a login without noticeable delay, commonly around 10 to 12. As hardware improves, raise the cost over time to keep hashing suitably slow for attackers.

Are bcrypt and Argon2 interchangeable?

Both are strong, slow password hashes. Argon2 is newer and also resists memory-hard attacks, while bcrypt is older and extremely widely supported. Either is a sound choice when configured with a suitable work factor.