System Designestimator

Password hash cost

If your password database leaks, an attacker does not log in through your API. They run guesses offline, on their own hardware, at whatever speed the hash allows. The hash function sets that speed, so choosing it and its cost parameters is choosing how long each guess takes.

Time to crack

A random 8-character password from 26 possible characters takes 210.2 days on average to crack with bcrypt, cost 10 on 1 × NVIDIA GeForce RTX 4090. Unsalted SHA-256 falls in 4.8 s.

Expected time to crack210.2 daysOn 1 × NVIDIA GeForce RTX 4090
10⁰10¹⁰10²⁰5101520Password length (characters)Expected time to crack (seconds)You: 210.2 days
bcrypt, cost 10Unsalted SHA-256 (dashed)

Hash, password and attacker

Presets are the minimum parameters in the OWASP Password Storage Cheat Sheet.

Algorithm

Each +1 doubles the work: 2^cost rounds.

Describe it by

Optional. Leave at 0 to use the hashcat benchmark scaled to your parameters.

Time one hash on your own server with these parameters. 0 means not set.

Speed and time

Attacker guesses per second · 1 GPU5.8K /sbcrypt, cost 10. hashcat mode 3200 on NVIDIA GeForce RTX 4090, benchmarked at cost 5, scaled to your parameters (an estimate)
Expected time to crack210.2 daysHalf the keyspace, on average
Time to search everything1.2 years208.8B candidates, 37.6 bits
Same password, unsalted SHA-2564.8 s9.5 s for everything. 3.8M× more guesses per second
Attacker speed and time to crack, your hash against unsalted SHA-256
On 1 × NVIDIA GeForce RTX 4090Guesses/sExpected time
bcrypt, cost 105.8K210.2 days
Unsalted SHA-256 (hashcat mode 1400)22B4.8 s
A scaling estimate

Hashcat published bcrypt at cost 5. The rate here is that figure divided by 2^(cost − 5). Real rates at your parameters differ a little by driver, tuning and tool.

What it shows

A fast hash like SHA-256 lets one GPU test billions of passwords a second. Password hashes such as bcrypt, PBKDF2, scrypt and Argon2id are deliberately slow, and some also need memory, which GPUs have less of per core.

Pick the hash and its cost settings, describe the password by length and characters (or by entropy), and choose a GPU and how many. The tool shows the attacker’s guesses per second and how long a full search takes.

How to read it

  • Start from OWASP’s minimum for your algorithm, or set the cost parameters yourself.
  • Guesses per second comes from published hashcat benchmarks. For bcrypt and PBKDF2 it is scaled to your parameters, so it is an estimate, not a measurement.
  • Hashcat has no benchmark for scrypt outside N=2^14, r=8, p=1, or for Argon2id. There, enter a rate you measured; it is labelled as your number.
  • Expected time is half the keyspace, the average for a random password. Time to search everything is the worst case.
  • The dashed line and the last table row show the same password under unsalted SHA-256.
  • Enter the time one hash takes on your server to see what each login costs you.

Questions

Why is a slow hash better for passwords?

A login only needs one hash, so a fraction of a second is fine. An attacker with a stolen database needs billions of guesses, so each guess costing more time multiplies their total cost. Fast hashes such as SHA-256 give them that speed for free.

Does a salt change these numbers?

Not for one target. A salt stops the attacker reusing work across users and kills precomputed tables, so cracking N accounts costs about N times as much. Against a single account, the guess rate is the same as shown here.

Why does the tool ask for my own rate for scrypt and Argon2id?

Their speed depends on memory settings, and hashcat’s published benchmark exists only for scrypt at N=2^14, r=8, p=1. Scaling that to other parameters would be a guess, so the tool asks for a rate you measured. Run hashcat on your hardware and enter the result.

Is the expected time a safe number to plan with?

No, it is an upper bound on safety. It assumes a random password and an attacker who tries every candidate. People choose guessable passwords, and attackers try those first, so many real passwords fall much sooner.

Learn it properly

Sources

Explore further

  • hashcatOpen-source password recovery tool; its benchmarks measure guesses per second on real GPUs.

Last updated

More tools

All tools

Your first senior-level
lesson is free.

Choose a course, open a free lesson, and explore an idea you’ve wanted to understand.