All Tools
1049+ free tools

bcrypt Visualizer

Understand how bcrypt hashes work — see the salt, cost factor, and hash structure. Demonstrates how the work factor (cost) exponentially increases compute time. Educational — the displayed hash is structurally correct but NOT a real bcrypt output.

Used only to demonstrate the work factor

4 (fast)15 (very slow)

Exponential: 2^cost key iterations

2b = current; 2a = legacy; 2y = PHP/Crypt

bcrypt hash structure
$2b$10$cq8TCvRgGBhMdyctTF5NPe...............................
$2b — version identifier
10 — cost factor (work)
22 chars — 128-bit salt (base64)
31 chars — 184-bit hash output
10
Cost
2^10 = 1,024
Iterations
7acf9513…
Salt (hex)
—
Measured time
Exponential cost scaling
Cost 4 — minimum~—
Cost 10 — common default~—
Cost 12 — modern minimum~—
Cost 14 — high security~—

Times are extrapolated from the measured cost-10 run. Each cost increment roughly doubles the work. Adjust the slider and watch the measured time change.

Educational tool — not a real bcrypt implementation

The salt is real (16 bytes from crypto.getRandomValues). The hash portion is a placeholder for visualization — real bcrypt uses the Eksblowfish cipher, which is too large to bundle here. To hash real passwords in production, use the bcrypt npm package or OS-provided crypt().

Salt prevents reuse

Every hash gets a unique random salt, so identical passwords produce different hashes.

Cost slows attackers

The cost factor lets you make hashing deliberately slow, blunting brute-force GPU attacks.

Forward-compatible

The cost is stored in the hash, so you can rehash at a higher cost next login without forcing a reset.

Related security tools

Password Analyzer
Deep password analysis: entropy, crack time, vulnerabilities
Password Strength Checker
Analyze password strength & estimate crack time
Memorable Password Generator
Diceware-style passwords from random words
PIN Code Generator
Generate secure 4, 6, or 8-digit PINs