QuantumAtlas

Myth 22 of 50 · Security and Cryptography

“Quantum computers will break all encryption, including AES and hashes”

Verdict: Mostly false

The short answer

Shor's algorithm breaks public-key systems such as RSA and elliptic curves, but symmetric ciphers like AES and hash functions are only weakened by Grover's algorithm to the equivalent of half the key length. AES-256 and SHA-256 remain secure against known quantum attacks.

Where the myth comes from

Many articles say that quantum computers will break all encryption. The statement is a simplification of a real threat. It blends together two different kinds of cryptography, public-key and symmetric, and two different quantum algorithms, Shor's and Grover's, whose effects differ greatly. The result is a belief that nothing will be safe, that passwords, files, and bank records are all doomed.

Cryptographers draw sharp lines. Public-key cryptography, used to agree on keys and sign messages, is vulnerable in a fundamental way. Symmetric cryptography, used to encrypt the bulk of data once a key is shared, and hash functions are affected only by a speedup that can be countered by larger parameters.

What Shor's algorithm breaks

Shor's algorithm solves the integer factoring and discrete logarithm problems in polynomial time, which destroys RSA, Diffie-Hellman, and elliptic curve cryptography. These systems rely on mathematical structure, and the quantum algorithm exploits it. Increasing the key size does not help much, because the cost of the attack grows only polynomially, as discussed in the myth on bigger keys. That is why the world is switching to new public-key algorithms based on other problems, such as lattices, whose security is not known to be threatened by any quantum algorithm.

What Grover's algorithm does to symmetric cryptography

Symmetric ciphers such as AES have no known algebraic structure of the kind that Shor exploits. The best general attack is a search over keys. A classical computer needs about 2 to the k trials for a k-bit key. Grover's algorithm needs about 2 to the k over 2 evaluations, a quadratic speedup, so AES-128 would drop to about 64 bits of security against a quantum attacker and AES-256 to about 128 bits. A 128-bit level of security is considered safe, which is why NIST and the NSA consider AES-256 quantum-resistant.

In practice, the Grover attack on AES-128 is far harder than the formula suggests. Grover's algorithm cannot be parallelized well: Zalka showed in 1999 that using many quantum computers in parallel gives only a square-root gain in the number of machines. The algorithm must run its roughly 2 to the 64 iterations in sequence on each machine, and each iteration requires evaluating AES inside a fault-tolerant circuit of thousands of operations. Even if a quantum computer could do a million iterations per second, which would be very fast for an error-corrected machine, 2 to the 64 iterations would take about 585,000 years. Jaques and coauthors computed detailed circuits for key search on AES in 2020 and found costs that make the attack on AES-128 impractical for the foreseeable future, though margins are thinner than for AES-256.

Hash functions

Hash functions such as SHA-256 and SHA-3 are used for integrity, signatures, and password storage. Finding a preimage, an input for a given hash, takes about 2 to the 256 classical trials and about 2 to the 128 with Grover, which is still infeasible. Collision finding is classically about 2 to the 128 for SHA-256. A quantum algorithm by Brassard, Høyer, and Tapp could in principle find collisions in about 2 to the 85 steps but needs enormous memory, and Bernstein argued in 2009 that when the cost of memory is counted, it gives no advantage over classical methods. For these reasons, standard hash functions remain in use, and hash-based signatures such as SLH-DSA, standardized in 2024, are among the most conservative post-quantum choices.

What is recommended

Practical advice is straightforward. Use AES-256 where long-term security is important, and prefer SHA-384 or SHA-512 or SHA-3 where larger outputs are cheap. NIST's post-quantum security categories use the cost of AES key search and SHA-3 collision search as reference points, treating AES-128 as a baseline. The NSA's CNSA 2.0 requires AES-256 and SHA-384 or SHA-512 for national security systems. The main migration effort is in public-key cryptography, where algorithms must be replaced.

The grain of truth

Symmetric cryptography is affected: key sizes need to be adequate, and 128-bit keys give a smaller safety margin than before. And protocols that use symmetric primitives in ways that rely on quantum-vulnerable key exchange are at risk because of the exchange, not because of AES. So the statement that quantum computers affect encryption broadly is true, while the statement that they break all of it is not.

Why the myth matters

The myth can cause misallocated effort. Organizations may plan to replace all their cryptography, or conversely conclude that the threat is overblown because AES survives. The correct plan is targeted: replace key exchange and signatures, keep strong symmetric algorithms, and review key lengths. It also affects the public's trust: believing that everything will be broken may reduce the willingness to use encryption at all, which would be worse than the quantum threat.

How to answer the myth

Explain the difference between public-key and symmetric cryptography with an analogy: public-key systems are like locks whose design has a mathematical weakness that a new tool exploits, while symmetric ciphers are like safes whose only attack is trying combinations, which a new tool speeds up modestly. Then state that doubling the key length restores the margin. If someone claims that AES-256 is broken by quantum computers, ask for the algorithm and the cost estimate.

Our verdict

Mostly false. Quantum computers threaten public-key cryptography seriously, but symmetric ciphers and hash functions remain secure with adequate parameters. AES-256 and SHA-256 or larger are considered safe against known quantum attacks.

Quick facts

  • Grover's algorithm reduces the effective strength of a k-bit symmetric key to about k over 2 bits.
  • Zalka proved in 1999 that Grover's algorithm cannot be parallelized efficiently.
  • At a million iterations per second, 2 to the 64 Grover iterations would take about 585,000 years.
  • NIST and the NSA treat AES-256 as quantum-resistant.

How to spot and answer this myth

  • Watch for claims that all encryption will be broken.
  • Check whether the claim distinguishes public-key from symmetric cryptography.
  • Ask for the algorithm and cost estimate behind claims about AES.
  • Look for advice that recommends specific parameters, such as AES-256.

Frequently asked questions

Is AES-128 safe against quantum computers?

It is considered adequate for most purposes, with about 64 bits of quantum security in the worst case, but AES-256 gives a larger margin.

Do I need to replace my hash functions?

Usually not. SHA-256 and SHA-3 remain secure, and larger outputs are an inexpensive precaution.

What actually needs replacing?

Public-key algorithms for key exchange and digital signatures.

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. Bernstein, D. J. (2009). Cost analysis of hash collisions: Will quantum computers make SHARCS obsolete? SHARCS 2009 workshop.
  4. 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.
  5. National Institute of Standards and Technology (2016). Submission requirements and evaluation criteria for the post-quantum cryptography standardization process.
  6. National Security Agency (2022). Commercial National Security Algorithm Suite 2.0 advisory.
  7. 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.