Skip to content
All post-quantum guides

Is AES-256 quantum safe? What quantum computers can and cannot break

Yes. AES-256 is considered safe against quantum computers, and so are the SHA-2 and SHA-3 hash functions. What a large quantum computer breaks is the public-key part: RSA, Diffie-Hellman and elliptic curves. That part is how almost every AES key is agreed in the first place, so it is the part to replace.

  • Skopx Team
  • Last reviewed
  • 5 min read

The short version

Two kinds of cryptography protect almost everything sent over a network, and a quantum computer treats them very differently.

Symmetric encryption uses one secret key that both sides already share. AES is the standard example. It does the heavy work: it encrypts the page, the file or the message itself.

Public-key cryptography lets two sides who have never met agree on that secret key, and lets one side prove who it is with a digital signature. RSA, Diffie-Hellman and elliptic curves are the standard examples.

KindExamplesBest known quantum attackWhat it means
Symmetric encryptionAES-128, AES-256, ChaCha20Grover's algorithm, a square-root speedup of key searchHolds. AES-256 keeps a very wide margin
Hash functionsSHA-256, SHA-384, SHA-3Grover-style searchHolds
Public-key key exchangeRSA, Diffie-Hellman, ECDH (X25519, P-256)Shor's algorithmBroken by a large enough quantum computer
Digital signaturesRSA, ECDSA, EdDSAShor's algorithmBroken by a large enough quantum computer

So the answer to "is my encryption quantum safe" is almost always: the AES part is, the part that delivered the AES key is not.

Why does AES survive?

The only general quantum attack on a cipher like AES is Grover's algorithm, published in 1996. It finds one item among N possibilities in about the square root of N steps, where an ordinary computer needs about N.

For a 256-bit key that turns 2^256 possibilities into about 2^128 steps. That number is still far out of reach: it is the same work factor that protects AES-128 against ordinary computers today, and nobody expects that to be broken by brute force.

For a 128-bit key the arithmetic looks worse on paper, about 2^64 steps. In practice it is much harder than that. Every one of those steps is a full AES computation carried out on an error-corrected quantum computer, and the steps have to run one after another. Grover's search does not split well across many machines: a thousand quantum computers do not make it a thousand times faster, the way a thousand ordinary computers speed up an ordinary key search.

NIST, which sets the encryption standards the US government uses, says this in its post-quantum cryptography FAQ:

Taking these mitigating factors into account, it is quite likely that Grover's algorithm will provide little or no advantage in attacking AES, and AES 128 will remain secure for decades to come.

NIST's transition report of October 2026, IR 8547, says the same of all its symmetric standards:

NIST does not expect to need to transition away from these standards as part of the PQC migration.

Hash functions such as SHA-256 are in the same position. The quantum attacks on them are of the Grover kind, and their output sizes already leave room for it.

Why do RSA and elliptic curves fail?

RSA is safe only as long as nobody can split a very large number into its two prime factors. Diffie-Hellman and elliptic-curve cryptography are safe only as long as nobody can solve a problem called the discrete logarithm. Ordinary computers cannot do either in any useful time.

Shor's algorithm, published in 1994, does both efficiently on a quantum computer. It is not a modest speedup like Grover's. It turns a problem that would take longer than the age of the universe into one that takes hours or days, once a machine large and reliable enough exists.

Longer keys do not fix this. Moving from RSA-2048 to RSA-4096 makes the keys slower for everyone and only asks the attacker for a somewhat larger quantum computer. That is why the plan everywhere is to replace these algorithms, not to stretch them. What replaces them is explained in what is post-quantum cryptography.

No machine that can run Shor's algorithm against real keys exists today. How far away one is, and why the estimates keep shrinking, is covered in when quantum computers will break encryption.

Does "256-bit" mean quantum safe?

No, and this is the most common confusion.

AES-256 has a 256-bit key and holds. A 256-bit elliptic curve, such as P-256 or the curve behind X25519, also has "256" in its name and does not hold. Shor's algorithm breaks it completely, and by current estimates with fewer resources than RSA-2048 needs: a 2026 study of neutral-atom machines puts the P-256 curve at a few days of running time and RSA-2048 at ten to a hundred times longer on similar hardware.

A product page that says "256-bit encryption" therefore tells you nothing about quantum safety. The useful questions are:

  • Which algorithm agrees the key: RSA, an elliptic curve, or a post-quantum algorithm such as ML-KEM?
  • Which algorithm signs: RSA, ECDSA, or a post-quantum signature such as ML-DSA?
  • Which cipher encrypts the data: AES-256 or something else?

If AES holds, why is AES-encrypted data at risk?

Because of how the AES key gets to both sides.

When a browser opens an HTTPS connection, the two sides first run a key exchange, usually an elliptic-curve one. The result is a fresh AES key that exists only for that session. Everything after that is encrypted with AES.

An attacker who records the whole conversation has two things: the key exchange messages and the AES-encrypted traffic. Today both are useless to them. With a quantum computer that runs Shor's algorithm, the recorded key exchange gives up the AES key, and the key opens the recorded traffic. AES was never broken. It was unlocked with its own key.

This is the attack known as harvest now, decrypt later, and it is why data sent today can already be exposed. The same pattern applies wherever a public-key step delivers a symmetric key:

  • websites and APIs over TLS
  • VPN tunnels and SSH sessions
  • encrypted email and files where the file key is wrapped with RSA
  • backups encrypted to a public key

What is not exposed in this way is data whose AES key never travelled under RSA or an elliptic curve at all: for example a disk encrypted with a key that comes from a passphrase or stays inside the device.

What should change, and what can stay?

  • Keep AES. For data that must stay secret for many years, use 256-bit keys. The NSA's CNSA 2.0 suite, the rule set for US national security systems, says: "Use 256-bit keys for all classification levels."
  • Keep SHA-2 and SHA-3. CNSA 2.0 asks for SHA-384 or SHA-512.
  • Replace the key exchange. The standard is ML-KEM, published by NIST as FIPS 203. Most deployments today run it together with X25519, so the connection stays safe if either one fails.
  • Replace the signatures. The standards are ML-DSA and SLH-DSA. See the NIST standards explained.
  • Find where the old algorithms are. Nobody can replace what they have not listed. A cryptographic inventory is the first step of every migration plan.

Common questions

Is AES-128 broken by quantum computers?

No. Grover's algorithm halves the effective key length on paper, but it runs its steps one after another on an error-corrected machine and cannot be spread across many machines efficiently. NIST says AES-128 is likely to remain secure for decades. Organizations that want a larger margin, and US national security systems, use AES-256.

Is RSA-4096 quantum safe?

No. Shor's algorithm breaks RSA at any practical key size. A longer key asks the attacker for a somewhat larger quantum computer and makes every legitimate operation slower. The plan is to replace RSA with post-quantum algorithms, not to lengthen its keys.

Is SHA-256 quantum safe?

For practical purposes, yes. The known quantum attacks on hash functions are Grover-style searches, and SHA-256 leaves room for them. Rules written for the highest sensitivity, such as CNSA 2.0, ask for SHA-384 or SHA-512.

Do I need to re-encrypt data already stored with AES-256?

Not because of quantum computers, as long as the AES key itself was never sent or stored under RSA or elliptic-curve encryption. If the key was delivered or wrapped with one of those, the weak point is that step, and that step is what needs replacing.

Sources

Every date, number and quotation in this guide comes from these documents.

  1. NIST, Post-Quantum Cryptography FAQs, answer added November 18, 2018; read December 3, 2026.
  2. NIST, IR 8547: Transition to Post-Quantum Cryptography Standards, October 27, 2026.
  3. NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, August 13, 2024.
  4. National Security Agency, Commercial National Security Algorithm Suite 2.0 and Quantum Computing Frequently Asked Questions, version 2.2, October 2026.
  5. Cain and others (Caltech, Oratomic), Shor's algorithm is possible with as few as 10,000 reconfigurable atomic qubits, March 30, 2026 (preprint).
  6. Lov K. Grover, A fast quantum mechanical algorithm for database search, May 1996.
  7. Peter W. Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, August 1995.

Keep reading

Moving your organization to post-quantum security?

Skopx helps enterprise and government teams find the encryption a quantum computer can break, plan the move to the NIST standards, and carry it out.