QuantumAtlas

Myth 28 of 50 · Security and Cryptography

“A quantum computer could crack any password instantly”

Verdict: False

The short answer

Passwords are attacked by guessing, not by factoring. Grover's algorithm gives only a quadratic speedup on guessing, which does not help against long random passwords, and weak passwords are already cracked by ordinary computers.

Where the myth comes from

Stories about quantum computers cracking passwords appear in news, advertisements, and videos. They combine the idea that quantum computers break encryption with the everyday experience of passwords, and conclude that any password, however strong, can be guessed instantly. The same story is used to sell password managers, security courses, and quantum-proof apps, so it is repeated widely.

The picture mixes up several different mechanisms. A password is not encrypted with RSA, and the threat from Shor's algorithm to public-key cryptography is not the same as a threat to passwords. The relevant quantum algorithm for guessing is Grover's, which gives a more modest gain.

How passwords are really attacked

Passwords are usually stored on servers as hashes, the output of a one-way function with a random salt. An attacker who steals the hash file tries guesses, computes the hash of each, and compares. The speed depends on the hash function and the hardware: a fast hash such as unsalted SHA-1 can be tested at billions of guesses per second per GPU, while a deliberately slow function such as bcrypt, scrypt, or Argon2 reduces the speed by orders of magnitude. The security of a password therefore depends on its entropy, that is, how unpredictable it is, and on the cost of each guess.

Most real-world password compromises do not involve any brute force at all. They come from phishing, reuse of passwords across sites, malware, and database leaks, and from people choosing predictable passwords, which dictionary attacks find quickly. Bonneau and coauthors surveyed the weaknesses of passwords in 2012 and the best guidance, such as NIST Special Publication 800-63B, emphasizes length, avoiding known-compromised passwords, rate limiting, and multi-factor authentication.

What Grover's algorithm can do

If the attacker could run a quantum search over the possible passwords, Grover's algorithm would reduce the number of guesses from N to about the square root of N. A password with 40 bits of entropy, for instance, takes about a trillion guesses classically and about a million quantum steps. But a trillion classical guesses is trivial for a GPU against a fast hash, so such a password is already weak. A password with 80 bits of entropy, such as a random passphrase of seven or eight words from a large list, would need about 2 to the 80 classical guesses, which is infeasible, and about 2 to the 40 Grover iterations. Each iteration involves evaluating the hash inside a quantum circuit, which is far slower and more expensive than on a classical chip. Zalka proved in 1999 that Grover's algorithm cannot be parallelized efficiently, so the speedup does not scale with many machines. As a result, quantum search offers little threat to well-chosen passwords, and ordinary advice remains valid.

Online guessing, in which an attacker tries passwords against a login page, is limited by rate limits and lockouts, and a quantum computer cannot speed it up, since each guess requires a round trip to the server. The attack that Grover's algorithm would enhance, offline guessing against a stolen hash file, is already feasible for weak passwords and infeasible for strong ones.

What actually protects you

The practical measures are well known. Use long, random passwords or passphrases generated by a password manager, and never reuse them across sites. Enable multi-factor authentication, preferably with hardware security keys or passkeys, which replace passwords with public-key credentials and resist phishing. Rely on services that store passwords with slow salted hashes. Passkeys use public-key cryptography, so in the long run they will need post-quantum algorithms, and standards bodies are working on that. These measures defend against the threats that cause most breaches, and are much more important than any quantum consideration.

The grain of truth

Quantum computers do affect some aspects of password security indirectly. If a protocol protects passwords in transit using quantum-vulnerable key exchange, recorded traffic could be decrypted later, revealing passwords, which is a reason to adopt post-quantum key exchange. And Grover's algorithm slightly reduces the effective strength of passwords against offline attacks, so a margin of safety suggests using longer passphrases. These are modest effects.

Why the myth matters

The myth distracts from the real threats and encourages fatalism. If any password can be cracked instantly, why bother choosing a good one? That attitude leaves people open to the common attacks. It also helps vendors to sell products using fear. Accurate information gives people practical steps they can take today.

How to answer the myth

Explain that passwords are guessed, not decrypted by Shor's algorithm, and that quantum computers offer at most a square-root speedup on guessing. Give the example of an 80-bit passphrase. Then recommend a password manager, long random passwords, multi-factor authentication, and passkeys. If a seller claims that its product protects against quantum password cracking, ask which attack it addresses.

Our verdict

False. Quantum computers cannot crack any password instantly. Grover's algorithm gives only a quadratic speedup on guessing, strong random passwords remain safe, and the main threats to passwords are phishing, reuse, and weak choices.

Quick facts

  • Grover's algorithm reduces the number of guesses from N to about the square root of N.
  • Zalka proved in 1999 that Grover's algorithm does not parallelize efficiently.
  • A random passphrase with 80 bits of entropy would still need about 2 to the 40 quantum iterations.
  • Most password breaches come from phishing, reuse, and leaks, not from brute force.

How to spot and answer this myth

  • Watch for claims that quantum computers crack passwords instantly.
  • Ask whether the claim refers to online login attacks or offline hash cracking.
  • Check whether password strength is described in terms of entropy.
  • Be skeptical of products that sell quantum protection for passwords.

Frequently asked questions

Should I make my passwords longer because of quantum computers?

Longer passwords are good practice for other reasons, and an 80-bit passphrase is strong against quantum search as well.

Do passkeys protect against quantum computers?

They avoid password guessing and phishing. Their cryptography will need to move to post-quantum algorithms over time.

Can a quantum computer speed up online guessing?

No. Online guessing is limited by the server's rate limits.

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. 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.
  4. Grassi, P. A., et al. (2017). NIST Special Publication 800-63B: Digital identity guidelines: Authentication and lifecycle management.
  5. 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.
  6. Bernstein, D. J., & Lange, T. (2017). Post-quantum cryptography. Nature, 549, 188-194.

Keep exploring

This page summarizes published research and expert consensus as of 2026 for education. Details change as experiments and standards evolve, so check the references before citing. It is not investment, legal, or security advice.