QuantumAtlas

Interactive Calculator · Security and Networks

Password Strength and Quantum Guessing Calculator

Find out how long a password survives against GPUs and against a quantum computer running Grover's algorithm, and what actually protects you.

Beginner
Presets

Speeds are order-of-magnitude figures for a leaked hash file that is attacked offline.

Human-chosen passwords are far less random than uniform random ones. Typical effective strength is 20 to 40 bits.

Strength

47.6 bits

47.6 bits nominal

Rating

Weak

Based on classical cracking time

Classical GPUs

11.37 minutes

Expected time, half the space

Quantum (Grover)

134.3 days

Slower than the classical attacker

What to take from this

A single graphics card breaks this quickly. Add length, use a slow password hash, and never reuse the password.

Quantum search needs about 11,605,307 Grover iterations, and each one must run the hash inside a fault-tolerant circuit. Online guessing is limited by the server's rate limits, which neither GPUs nor quantum computers can speed up.

Time to crack versus length

10⁻³1000010¹¹10¹⁸10²⁵10³²10³⁹51015201 hour1 yearyoursLengthSeconds
Classical GPUsQuantum (Grover)

Compute password entropy from character set and length, apply a human-choice penalty, and compare the expected cracking time of classical GPU attackers with a Grover attack for different password storage schemes.

What this calculator does

Headlines suggest that quantum computers will crack any password instantly. This calculator tests that claim with arithmetic. A password is attacked by guessing, which means computing the hash of each candidate and comparing it with a stolen hash. How long that takes depends on three things: how unpredictable the password is, measured in bits of entropy; how expensive each guess is, which depends on how the password is stored; and how many guesses per second the attacker can make. A quantum computer running Grover's algorithm can in principle search a space of N candidates in about the square root of N steps, but each step requires running the hash function inside a quantum circuit.

You choose the character set and length, the storage scheme from a fast unsalted hash to a slow memory-hard function, the number of attacker GPUs, and a penalty that models how human-chosen passwords are less random than random ones. You also describe a quantum machine: operations per hash, logical operations per second, and the number of machines. The calculator reports the strength in bits, a rating based on classical cracking time, the classical and quantum times, and a chart of both against password length.

How to use it

Start with the preset 8 random letters and digits, stored with a fast unsalted hash and attacked by a single modern GPU. The password has 47.6 bits of entropy. A GPU testing 160 billion guesses per second searches half the space in about 11 minutes, so the rating is Weak. The quantum attacker, at a million logical operations per second and a million operations per hash, needs about 11.6 million iterations at one second each, around 134 days, which is slower than the classical GPU. This is the usual surprise: Grover's square-root speedup is real, but fast classical hardware starts with a huge head start, and the quantum machine's overheads are even larger.

Now try 12 random letters and digits. The strength rises to 71.5 bits. A single GPU would need about 320 years on average, and a thousand GPUs would need about four months, so the rating moves to Strong against a modest attacker. The quantum attacker needs about 1,400 years on one machine, still slower than the thousand-GPU cluster. Six Diceware words, a random passphrase from a list of 7,776 words, give 77.5 bits: about 22,000 years for one GPU. Then select the Slow hash preset and see how a memory-hard storage scheme such as Argon2id multiplies the classical cracking time by a factor of a billion compared with a fast hash. Choosing how passwords are stored is the most powerful defense a service has.

Next, the Human-chosen 10 characters preset. Ten characters from the full keyboard would have 65.5 bits if random, but real people choose predictable patterns, which the human-choice penalty models as 25 bits. The effective strength falls to 40.5 bits and a single GPU finds it in about five seconds. Researchers who studied leaked password databases, such as Weir and coauthors in 2009, found that dictionary-based and pattern-based attacks crack a large fraction of human-chosen passwords within hours. The lesson is that randomness matters far more than apparent complexity.

Reading the result

The entropy of a uniformly random password is its length times the logarithm base 2 of the character set size. The expected classical effort is half the space divided by the guess rate. Grover's algorithm needs about π/4 times the square root of the space in iterations, and each iteration costs one evaluation of the hash in the quantum circuit. For a fast hash such as MD5, a classical GPU does a guess in picoseconds-scale amortized time, while a quantum machine takes a fraction of a second per logical hash even in generous scenarios, so the classical side wins until the password space is huge. The crossover is far beyond the strengths that people actually use, and at those strengths both attacks are infeasible.

Note what the calculator does not cover. Online guessing against a login page is limited by rate limits and lockouts, and neither GPUs nor quantum computers speed it up. Most real-world compromises involve phishing, malware, reuse of passwords across sites, and leaked plaintext, which no cryptography can fix. The recommendations of NIST Special Publication 800-63B emphasize length, screening against known-compromised passwords, and multi-factor authentication.

Assumptions and limits

The guess rates are order-of-magnitude figures from community benchmarks of modern GPUs and will differ by hardware, hash implementation, and parameters. The model assumes a uniformly random password except for the penalty slider, a single hash evaluation per guess, and a pure Grover attack without exploiting structure in the password distribution, which a classical attacker can do with dictionaries and rules. It does not model salted databases attacked per-user, which multiplies the effort. Use it to compare orders of magnitude and to see which factors matter.

The formulas behind it

Entropy

H = L · log₂ |A|

L characters or words from an alphabet of size |A|, chosen uniformly at random.

Effective strength

H_eff = H − penalty

A crude model of predictability in human-chosen passwords.

Classical time

t_C = 2^(H_eff − 1) / (r · G)

r guesses per second per GPU and G GPUs, searching half the space on average.

Quantum time

t_Q = (π/4) · 2^(H_eff/2) · C / (R · √P)

C logical operations per hash evaluation, R per second, P machines.

Worked examples

Eight random letters and digits

  1. H = 8 × log₂ 62 = 47.6 bits, one GPU at 1.6 × 10¹¹ guesses per second.
  2. Classical: 2^46.6 / 1.6 × 10¹¹ ≈ 680 seconds.
  3. Quantum: 0.785 × 2^23.8 = 1.16 × 10⁷ iterations at 1 second each.

Result11 minutes classically versus about 134 days on a single quantum machine.

Twelve random letters and digits

  1. H = 71.5 bits.
  2. Classical, one GPU: about 1.0 × 10¹⁰ seconds, or 320 years; with 1,000 GPUs, about 0.32 years.
  3. Quantum, one machine: 4.5 × 10¹⁰ seconds, or about 1,400 years.

ResultBoth attackers need years or centuries even with generous hardware.

Six Diceware words

  1. H = 6 × log₂ 7,776 = 77.5 bits.
  2. Classical, one GPU: about 6.9 × 10¹¹ seconds, or 22,000 years.

ResultA random passphrase of this length is strong against both classical and quantum guessing.

Frequently asked questions

Can a quantum computer crack any password instantly?

No. Grover's algorithm gives only a square-root speedup and needs a full hash evaluation inside a quantum circuit for every step.

How long should my password be?

Use a password manager to generate random passwords of at least 16 characters, or a six-word random passphrase for passwords you must memorize.

What matters more than quantum computing for passwords?

Not reusing passwords, using multi-factor authentication or passkeys, and services storing passwords with slow salted hashes.

References

  1. Grover, L. K. (1996). A fast quantum mechanical algorithm for database search. STOC '96, 212-219.
  2. Zalka, C. (1999). Grover's quantum searching algorithm is optimal. Physical Review A, 60, 2746-2751.
  3. Grassi, P. A., et al. (2017). NIST Special Publication 800-63B: Digital identity guidelines: Authentication and lifecycle management.
  4. Bonneau, J., Herley, C., van Oorschot, P. C., & Stajano, F. (2012). The quest to replace passwords: A framework for comparative evaluation of web authentication schemes. IEEE Symposium on Security and Privacy, 553-567.
  5. Weir, M., Aggarwal, S., de Medeiros, B., & Glodek, B. (2009). Password cracking using probabilistic context-free grammars. IEEE Symposium on Security and Privacy, 391-405.
  6. Wheeler, D. L. (2016). zxcvbn: Low-budget password strength estimation. USENIX Security Symposium, 157-173.
  7. Jaques, S., Naehrig, M., Roetteler, M., & Virdia, F. (2020). Implementing Grover oracles for quantum key search on AES and LowMC. EUROCRYPT 2020, LNCS 12106, 280-310.

Keep exploring

These calculators use simplified, published models for education and planning. Real devices and systems differ, so treat results as estimates. They are not engineering, investment, legal, or security advice.