Bcrypt Hash Generator & Verifier

Generate and verify cryptographically secure, salted Bcrypt password hashes in your browser. Zero server uploads.

100% Client-Side Zero Server Uploads Web Worker Powered
Verified Client-Side Security: Runs entirely in your browser. Nothing is sent to a server. You can audit and verify zero outgoing network calls in your browser’s DevTools Network panel.

Generate Bcrypt Hash

Create a salted Blowfish hash with configurable work factor

0 / 72 bytes
Cost: 10 (1,024 rounds)
Expected time: ~80–120ms (Standard default for modern web applications)
Copied to clipboard!
Algorithm Revision: $2b$
Cost Factor (Rounds): 10 (1,024 rounds)
Embedded Salt (22 chars): --
Ciphertext (31 chars): --

Verify Bcrypt Hash

Test plain text against an existing hash with format validation

0 / 60 chars
Format: $2a$, $2b$, or $2y$ + 2-digit cost + 53 Base64 chars.
Enter plain text and a Bcrypt hash above, then click Verify Match.

How to Generate & Verify Bcrypt Hashes

A 3-step guide for developers, system administrators, and security learners.

1

Enter Password & Choose Cost

Type or paste your password. Set your desired cost factor (10 for general web apps, 12 for high security). Keep the 72-byte limit in mind.

2

Compute via Background Worker

Click "Generate Bcrypt Hash". The cryptographic key derivation runs in an isolated Web Worker, ensuring zero UI freezes even at cost 14+.

3

Copy or Verify Matches

Copy the 60-character salted hash with one click, or paste an existing database hash into the Verifier to test password matches client-side.

Want an in-depth cryptographic explanation of Eksblowfish key expansion, GPU cracking resistance, and password storage standards? Read our complete guide:
Read Complete Bcrypt Guide →

Bcrypt Hash Anatomy & Structure Specification

Every standard Bcrypt hash is a compact, self-contained 60-character ASCII string formatted with dollar-sign ($) delimiters across four modular fields:

$2b$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
Field Component Characters Format Value Cryptographic Role
Algorithm Prefix 4 chars $2a$, $2b$, $2y$ Identifies algorithm revision (standardized by OpenBSD to resolve historical integer wraparound).
Cost Factor 3 chars 10$ (04 to 31) Specifies iteration exponent (2^cost rounds of Eksblowfish key expansion).
Embedded Salt 22 chars 16 bytes (Radix-64) Cryptographically secure random salt neutralizing precomputed rainbow table attacks.
Ciphertext Digest 31 chars 24 bytes (Radix-64) Result of encrypting the standard 192-bit string "OrpheanBeholderScryDoubt" 64 times.

Work Factor & Operational Latency Guidelines

Bcrypt is designed to be computationally expensive. Because key expansion rounds scale exponentially with each increment (2^cost), selecting an appropriate cost factor balances security resistance against application server load:

Cost Factor Key Expansion Rounds Average CPU Latency Recommended Application Context
4 to 8 16 to 256 rounds < 15 milliseconds Local automated testing only; insecure for production authentication.
10 (OWASP Default) 1,024 rounds ~80 – 120 milliseconds Standard web applications balancing responsive login UX and brute-force resistance.
12 (High Security) 4,096 rounds ~350 – 500 milliseconds Banking, fintech, and privileged administrative credential authentication.
14+ 16,384+ rounds 1.5 to 6.0+ seconds Batch archiving, cold storage key derivation, offline vault encryption.

Technical Limits: The 72-Byte Truncation Boundary

Due to the 448-bit internal key schedule array of the underlying Blowfish cipher, Bcrypt silently truncates inputs at 72 bytes. Any characters beyond byte 72 do not impact the resulting hash. The real-time byte indicator in our tool tracks input size to keep you within safe limits. Applications supporting longer passphrases should pre-hash user inputs with SHA-256 before hashing with Bcrypt, or migrate directly to Argon2id.

Client-Side Web Worker Privacy Architecture

Testing password hashes on untrusted third-party servers creates critical credential harvesting risks. The Expeditious Tools Bcrypt Hash Generator and Verifier executes 100% locally in your web browser using an isolated background Web Worker (bcrypt-worker.js).

No plain text passwords, salts, or generated hashes are transmitted across the internet, saved in cookies, or stored on our servers. Offloading computations to a Web Worker also ensures your browser UI remains completely fluid and responsive, even when calculating cost 14 or 15 hashes.

Frequently Asked Questions

Authoritative answers to common questions about Bcrypt hashing, verification, and password security.

OWASP recommends a cost factor of 10 to 12 for interactive user authentication. A cost factor of 10 computes 1,024 iterations (~80–120ms on modern CPUs), providing strong resistance against offline brute-force attacks without causing server login bottlenecks.
Bcrypt automatically generates a cryptographically secure 16-byte random salt for each hashing operation. Because this unique 22-character salt is embedded directly inside the resulting 60-character hash, identical passwords always yield visually distinct hashes, neutralizing precomputed rainbow table attacks.
No. Bcrypt is a one-way cryptographic trapdoor function, not reversible two-way encryption. Hashes cannot be decrypted. The verifier validates candidates by extracting the embedded salt and cost factor, re-computing the hash, and performing a constant-time comparison.
Because of Blowfish's internal 448-bit key schedule, Bcrypt silently truncates inputs at 72 bytes. The live byte counter in our generator warns you if your input approaches or exceeds 72 bytes. Applications supporting longer passphrases should pre-hash inputs with SHA-256 or use Argon2id.
No. Our tool offloads all cryptographic key derivation to an isolated background Web Worker (bcrypt-worker.js). Even if you select cost 14 (~2 seconds) or cost 15 (~4–6 seconds), your browser interface remains completely responsive without UI locking.
No. All hashing and verification calculations execute 100% locally in your browser memory via the client-side Web Worker. None of your passwords, test credentials, or hashes are transmitted across the internet, saved in cookies, or logged to our servers.