Key Stretching Time Calculator
Estimate how long it takes an attacker to brute-force a password given key-stretching parameters — algorithm, work factor, and attacker hardware.
Parameters
Iterations = 2cost. Each +1 doubles hash time.
OWASP 2023 minimum for PBKDF2-SHA256: 600,000.
This is the attacker's baseline rate before work factor is applied.
Password to crack
Configure parameters on the left and click Calculate.
Effective Rate
—
hashes / second
Keyspace
—
combinations
Entropy
—
bits
Slowdown vs. no key stretching
—
How many times harder key stretching makes the brute-force compared to a single fast hash (MD5 baseline at 10 billion/s).
Crack Time Across Hardware Profiles
| Hardware | Eff. Rate (H/s) | Crack Time |
|---|
Recommendation
—
Summary
Estimate how long it takes an attacker to brute-force a password given key-stretching parameters — algorithm, work factor, and attacker hardware.
How it works
- Select a key-derivation algorithm: bcrypt, PBKDF2-SHA256, or Argon2id.
- Set the work factor (bcrypt cost) or iteration count (PBKDF2/Argon2).
- Choose an attacker hardware profile — consumer GPU, professional GPU cluster, or a custom hash rate.
- The tool divides the attacker's base rate by the work factor to get effective hashes/second.
- It then computes keyspace from password length and character set, and divides by the effective rate.
- Results show expected crack time, effective attacker throughput, and a comparison table across hardware profiles.
Use cases
- Pick a bcrypt cost factor that keeps offline cracking impractical on today's GPUs.
- Decide how many PBKDF2 iterations are needed for a new authentication system.
- Check whether your current Argon2id settings are strong enough against a well-funded attacker.
- Compare how much protection bcrypt vs. PBKDF2 vs. Argon2 buys at the same iteration count.
- Educate a team on why work factors need to increase as hardware improves.
- Audit a legacy system to determine if its iteration count is still adequate.