← All pwn.watch security tools
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
Verify password against hash
Need a fast digest instead of a password hash? Use the SHA-256 / HMAC tool.
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.