Average Brute-Force Time
Also known as how long to crack · time to brute force · password cracking time · exhaustive search time · average guessing time · 2^(H-1)/R · offline attack time · key search time
Enter your known values, leave one input blank, and solves for the missing one. Try different units for next level excitement!
Learning zone
Divide the number of guesses by the guesses per second. The only subtlety is the in the exponent: an exhaustive search finds the answer halfway through on average, so the expected effort is . The equation is trivial. Everything difficult about it is in the two numbers you feed it, and one of them is unknowable.
is the entire answer. The same secret can be trivial or unbreakable depending only on the guessing rate, and nothing about the secret tells you which situation you are in. Against a login form that rate-limits to five attempts and then locks the account, a rate of a few guesses per hour makes even a weak password survive indefinitely. Against a stolen database of unsalted MD5 hashes, a single consumer graphics card manages tens of billions of guesses a second, and a rented cluster does far more. Between those two extremes lies a factor of , which is 43 bits — more than the entire strength of the xkcd passphrase. So the honest way to use this page is to assume the worst realistic case: an offline attack on a fast hash with no rate limiting, because that is the case you cannot control once your database leaves the building.
Exhaustive search is what an attacker does last. Before that come dictionaries, leaked-password corpora ranked by frequency, and mangling rules that capitalise, append years, and make the letter-to-digit substitutions everyone makes. A human-chosen password is usually found in a small multiple of the dictionary's size, which is billions rather than the that a formal count of the character space suggests. Treat the time above as a ceiling on effort, never as an estimate of it — it is exactly right for a value your software chose at random and wildly optimistic for anything else.
grows, and it grows in the attacker's favour. An estimate made today for an attack in 2040 is optimistic by orders of magnitude: hardware improves, purpose-built accelerators arrive, and cloud capacity gets cheaper to rent by the hour. Worse, "harvest now, decrypt later" means the ciphertext copied this morning will face the hardware of whatever year the attacker chooses. Anything that must stay confidential for decades has to be sized against decades of hardware improvement, not against this afternoon's benchmark.
And every number here is classical. Grover's algorithm searches an unstructured space of in about operations, which halves the effective strength of a symmetric key or a hash preimage — the standard response is to double the key, which is why AES-256 is specified alongside AES-128. Shor's algorithm is a different matter: it does not weaken RSA, Diffie-Hellman or elliptic curves, it ends them, solving factoring and discrete logarithms in polynomial time. No arithmetic on this page models either. For parameters intended to survive that, the references are FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), all published in 2024.
One last note on reading very large answers. This site's time units stop at the year, so a 128-bit key at a trillion guesses a second comes back as about years and stays there. For scale, the universe is roughly years old, so that figure is around 400 million times the age of everything. That is the correct answer and it is not softened here with some larger invented unit, because the point of the number is that it does not fit on a human scale. What the number does not mean is that the system is safe: keys leak, endpoints get compromised, and the attacker walks past the arithmetic entirely. A 128-bit key means brute force is not the way in. It says nothing about the other ways in.
- = Average time to find the key (yr)
- = Entropy or key strength (bit)
- = Guess rate (Hz)
- Average time to find the key — Speed, Distance & Time, Final Velocity (Uniform Acceleration)
- Entropy or key strength — Unicity Distance, Password Entropy (Uniform Random Generation)
- Guess rate — Wave Speed (v = fλ), Period-Frequency Relation