Skip to content

Get notified

Get an email when a new major security incident drops. No spam, unsubscribe any time.

Only used for pwn.watch incident emails. Protected by Cloudflare Turnstile.

← 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

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).

CostIterationsNative serverBrowser JSRatingGuidance
416< 1 ms~2 msTesting onlyUnit tests & CI fixtures only; trivial to brute-force on GPUs.
8256~15 ms~30 msLegacyBelow OWASP minimum; rehash on next login.
101,024~60–80 ms~120 msRecommendedOWASP 2026 baseline floor for interactive web logins.
112,048~120–160 ms~250 msRecommendedBalanced latency and brute-force resistance for modern APIs.
124,096~240–320 ms~500 msHigh securityStrong choice for admin/privileged accounts; noticeable pause in JS.
138,192~500 ms~1 sServer-onlyUse native C/Rust bcrypt on backend workers; watch login DoS limits.
1416,384~1.0 s~2 s+Server-onlyOffline / low-concurrency vaults; consider Argon2id for new apps.

Need a fast digest instead of a password hash? Use the SHA-256 / HMAC tool.

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.