Bcrypt Hash Generator & Verifier

Generate secure Bcrypt password hashes ($2a$/$2b$) or verify matching passwords locally. Customize cost rounds and inspect salt/hash components.

Cost Rounds:
Version:
Generated Bcrypt Hash:
Deconstructed Hash Breakdown (60-char format):
Version: $2a$
Cost: 10
Salt (22 chars): -
Checksum (31 chars): -
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/bcrypt-generator" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/bcrypt-generator" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Bcrypt Password Hash Generator & Verifier</a></div>

Why Do Modern Systems Use Bcrypt for Passwords?

Standard hashes like MD5 or SHA-256 are designed to be fast, enabling attackers to test billions of guesses per second on modern GPUs. Bcrypt is deliberately slow and includes an adaptive cost factor (rounds). Each increment doubles computation time, neutralizing rainbow table and brute-force attacks.

Bcrypt 60-Character Hash Structure

A standard Bcrypt string such as $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy splits into four parts:

What happens in the page

The hashing library is loaded lazily: getBcrypt() looks for the CDN build only when you actually press the button, so the page stays light for visitors who never hash anything. doHash() generates a salt at the chosen cost factor and derives the digest, doVerify() re-runs the same derivation over the stored hash's own salt and compares, and breakDownHash() splits the result into its four parts — prefix, cost, 22-character salt, 31-character digest — so a mistyped parameter is visible rather than hidden.

Where it breaks down

The cost factor is the only strength knob, and each increment doubles the work: 10 finishes instantly, 14 takes seconds, and because the computation runs on the main thread the interface blocks while it works. Hashes live in memory only; reload and they are gone. The page cannot help if the CDN is unreachable. Version prefixes ($2a$, $2b$, $2y$) describe the same algorithm and verify against each other, but tools display them differently, which confuses comparisons.

Privacy: no data leaves this tab

The password stays in the field and in memory for one derivation. Nothing is stored, no request is made, and the library itself is the only thing fetched — from a pinned CDN version.

Frequently asked questions

Which cost factor should I use?

Start at 10–12. Pick the slowest value your login can tolerate — roughly 250 ms is comfortable, two seconds is not.

Can a hash be reversed?

No. bcrypt is one-way; the only attack is guessing a candidate and re-deriving. That is exactly why leaked hash databases are used for credential stuffing.

Why does the page pause?

The derivation runs in the main thread. Higher cost factors mean longer pauses — that is the algorithm working as designed.