Bcrypt Generator & Hash Verifier
Hash a password with bcrypt at cost 4–12, see how long it took, break the hash into version, cost, salt and checksum, and check a password against any $2a$ / $2b$ / $2y$ hash. Runs in your browser with bcryptjs.
Generate bcrypt hash
Cost 10 (1,024 rounds) — recommended production baseline
Good balance between login speed and offline cracking resistance.
Cost factor benchmark guide
Each +1 increment in bcrypt cost doubles the key-setup iterations (2cost). Target ~200–300 ms on your production auth servers. For greenfield systems, OWASP also recommends Argon2id (memory-hard against GPU/ASIC cracking).
| Cost | Iterations | Native server | Browser JS | Rating | Guidance |
|---|---|---|---|---|---|
| 4 | 16 | < 1 ms | ~2 ms | Testing only | Unit tests & CI fixtures only; trivial to brute-force on GPUs. |
| 8 | 256 | ~15 ms | ~30 ms | Legacy | Below OWASP minimum; rehash on next login. |
| 10 | 1,024 | ~60–80 ms | ~120 ms | Recommended | OWASP 2026 baseline floor for interactive web logins. |
| 11 | 2,048 | ~120–160 ms | ~250 ms | Recommended | Balanced latency and brute-force resistance for modern APIs. |
| 12 | 4,096 | ~240–320 ms | ~500 ms | High security | Strong choice for admin/privileged accounts; noticeable pause in JS. |
| 13 | 8,192 | ~500 ms | ~1 s | Server-only | Use native C/Rust bcrypt on backend workers; watch login DoS limits. |
| 14 | 16,384 | ~1.0 s | ~2 s+ | Server-only | Offline / low-concurrency vaults; consider Argon2id for new apps. |
Need a fast digest instead of a password hash? Use the SHA-256 / HMAC tool.
Sponsored
Brought to you byTinkerer Club
The private club for people who own their servers, run their own AI, and pay $0/month for software.
Bcrypt FAQ
- What cost factor should I use for bcrypt?
- Pick the highest cost that keeps a login hash around 250 ms on your production hardware. Cost 10 is the common default in 2026; 12 is typical for higher-value accounts. Each +1 doubles the work.
- What do $2a$, $2b$ and $2y$ mean?
- They are bcrypt version prefixes. $2b$ is the current OpenBSD version and fixes a length-wrapping bug in $2a$. $2y$ is PHP's name for the corrected algorithm. Most libraries accept all three when verifying.
- How is a bcrypt hash structured?
- $2b$10$ + 22 characters of salt + 31 characters of hash, 60 characters in total. The salt and hash use bcrypt's own Base64 alphabet (./A-Za-z0-9).
- Does bcrypt have a password length limit?
- Yes. Only the first 72 bytes of the UTF-8 password are used; longer input is silently truncated. The tool warns when that happens.
- Is my password sent to a server?
- No. Hashing and verification run in your browser with bcryptjs (pure JavaScript). Still, do not paste live production passwords into any website.