Home/Bcrypt Generator & Verifier

Bcrypt Hash Generator & Password Verifier

Eksblowfish (RFC OpenBSD)

Generate cryptographically secure Eksblowfish password hashes with adjustable salt rounds (4-16) and verify candidates locally in browser memory.

Zero Server Calls
Cost Factors 4 to 14
$2a, $2b & $2y Support
Client-Side Benchmark
Quick Preset Passwords:Click any capsule to load password into generator
Strength: Very Strong21 chars (21 bytes)
Quick Preset Passwords:
10 rounds
4 (Fast)10 (Default)12 (High)14 (Slow)
Click "Generate Bcrypt Hash" to compute hash.
Why Bcrypt? (Deliberately Slow by Design)

Unlike fast digest algorithms like MD5 or SHA-256 (designed for file checksums and vulnerable to high-throughput GPU attacks), bcrypt uses Eksblowfish key schedule. Each increment in salt rounds doubles the required computation time, rendering offline brute-force attacks infeasible.

Zero-Knowledge Local Execution

All data processing, parsing, and compilation execute strictly inside your local browser memory. Zero external server uploads.

Instant Local Cryptography

Instant real-time reactive computation delivers immediate feedback on every keystroke with zero network latency.

Production Standards & Compliance

Follows modern browser Web Crypto and security practices for safe client-side inspection.

Technical Reference & Architecture Guide

Bcrypt Generator Developer Reference

Developer utility for bcrypt-generator.

Bcrypt Generator Developer Reference — Client-Side In-Memory Architecture & Data Flow
Bcrypt Generator Developer Reference — Client-Side In-Memory Architecture & Data Flow
OWASP Password Storage

Bcrypt Work Factor (Cost Rounds) vs Hash Latency Table

Bcrypt cost work factors (2^N iterations), average server CPU hashing latency, security level assessments, and production workload recommendations.

Bcrypt Work Factor (Cost Rounds) vs Hash Latency Table
Cost Factor ($2^N$)Key Iteration CountApprox CPU Hash TimeSecurity AssessmentRecommended Production Scenario
Cost 8256 rounds~15 msWeakLocal unit testing / CI test suites only
Cost 101,024 rounds~60 msMinimum BaselineHigh-throughput public APIs with tight latency budgets
Cost 124,096 rounds~250 msOWASP RecommendedStandard modern user authentication and login systems
Cost 138,192 rounds~500 msHigh AssuranceSensitive financial portals, admin accounts
Cost 1416,384 rounds~1,000 ms (1.0s)Very HighEnterprise master passwords; risk of CPU starvation under DoS
Cost 1532,768 rounds~2,000 ms (2.0s)ExtremeCold storage archival encryption, high security master vaults
OWASP Password Storage Cheat Sheet & OpenBSD bcrypt benchmarks.

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
passwordstringPlaintext secret to hash or verify against an existing modular crypt format bcrypt string; truncated to 72 bytes.—
roundsnumber (4-31)Logarithmic work factor determining key expansion iterations (computed as 2^rounds cycles, default 2^10 = 1024).10
prefix"$2a$" | "$2b$" | "$2y$"Bcrypt specification version prefix; $2b$ is the modern OpenBSD standard addressing high-bit sign extension."$2b$"
hashstringStandard 60-character modular crypt format bcrypt string containing identifier, cost factor, salt, and checksum.—

Pro Tips & Best Practices

Bypass 72-Byte Truncation Limit

Bcrypt strictly hashes the first 72 bytes of plaintext. Pre-hash long passwords using SHA-256 or BLAKE2b into Base64 before passing them into bcrypt to eliminate truncation vulnerabilities without loss of entropy.

Target 250ms Server Latency Budgets

Calibrate the cost rounds so individual hash operations take 250ms to 500ms on production authentication nodes. Rounds 10 to 12 provide strong brute-force resistance while remaining resilient against login denial-of-service.

Enforce Constant-Time Comparison

Always verify credentials using constant-time comparison methods like bcrypt.compare(). Standard strict equality checks (===) terminate on the first mismatched byte, creating timing side-channels.

Common Gotchas & Troubleshooting

⚠️Passwords Exceeding 72 Bytes Match Different Strings

Bcrypt ignores all bytes after the 72nd byte. Passwords sharing the exact first 72 bytes will evaluate as identical. Apply SHA-256 pre-hashing before bcrypt, or enforce maximum input length validation in your request schema.

⚠️Cost Factor 13 or Higher Freezes UI Thread

Rounds >= 13 require over 8,192 Blowfish key expansions and block single-threaded event loops. Offload benchmark calculations to a Dedicated Web Worker, or keep client-side exploration between rounds 10 and 12.

⚠️Unrecognized Salt Revision Error on $2y$ Hashes

The $2y$ identifier is specific to PHP and is rejected by strict Go or Java bcrypt parsers. Normalize the string by replacing the $2y$ prefix with $2b$ prior to verification, as the salt and cipher payload are mathematically identical.

Frequently Asked Questions

Why does bcrypt truncate input passwords at exactly 72 bytes?▼

The underlying Blowfish cipher key schedule (EksBlowfishSetup) accepts up to 448 bits (56 bytes) and processes cyclical password expansion up to 72 bytes. Characters beyond byte 72 are completely ignored during key state initialization.

What is the technical difference between $2a$, $2b$, and $2y$ prefixes?▼

$2a$ is the original OpenBSD implementation, which contained a bug handling characters with the high bit set. PHP introduced $2y$ to fix sign extension. OpenBSD released $2b$ in 2014 as the official revision fixing both sign extension and buffer wraparound bugs across all architectures.

Why is client-side bcrypt hashing insufficient for zero-knowledge auth?▼

Sending a client-computed bcrypt hash directly to the server turns the hash into the effective password, leaving the account vulnerable to Pass-the-Hash attacks if the database leaks. Secure architectures use client-side PBKDF2/Argon2id for transport and perform bcrypt salt stretching server-side.

How does bcrypt compare to Argon2id regarding GPU cracking resistance?▼

Bcrypt requires 4KB of memory for Blowfish S-boxes that fit directly into CPU L1 cache, making FPGA attacks harder than on PBKDF2. However, Argon2id can be configured with hundreds of megabytes of RAM and multiple parallel threads, providing significantly higher resistance against modern GPU clusters.