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

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.

Done

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

  1. Select a key-derivation algorithm: bcrypt, PBKDF2-SHA256, or Argon2id.
  2. Set the work factor (bcrypt cost) or iteration count (PBKDF2/Argon2).
  3. Choose an attacker hardware profile — consumer GPU, professional GPU cluster, or a custom hash rate.
  4. The tool divides the attacker's base rate by the work factor to get effective hashes/second.
  5. It then computes keyspace from password length and character set, and divides by the effective rate.
  6. 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.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu