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.
Use the Key Stretching Time Calculator
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
Given a key-stretching algorithm (bcrypt, PBKDF2, or Argon2), its work factor or iteration count, and an attacker's hardware hash rate, this tool computes the effective hashes per second the attacker achieves and the expected brute-force time for a password of a given length and character set. Use it to choose work factors that keep offline cracking impractical.
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 equivalent compute time or server latency.
- 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.