By Bonaventure Ogeto · Published · Last verified:

Is AES-256 Quantum Safe? Symmetric Encryption, Hashing and Passwords After Quantum

The short answer

Yes. AES-256 is quantum safe. The best known quantum attack on it, Grover's algorithm, gives at most a square-root speed-up[1] on key search, and NIST rates AES-256 in Category 5[2], its highest post-quantum level. AES-128 and SHA-256 can continue to be used[3] too. The quantum risk is to the public-key cryptography that exchanges AES keys.

Source: Mctaba Labs, “Is AES-256 Quantum Safe? Symmetric Encryption, Hashing and Passwords After Quantum”, last verified 4 December 2026, mctaba.com/learn/cryptography/is-aes-256-quantum-safe

Is AES-256 quantum safe?

Yes. AES, the Advanced Encryption Standard, is a symmetric cipher: the same secret key encrypts and decrypts, unlike public-key cryptography, where one key locks and a different key opens (symmetric vs asymmetric encryption explained). NIST published it as FIPS 197 in November 2001[4], in three key sizes: AES-128, AES-192 and AES-256.

Quantum computers do not threaten all cryptography equally. Shor's algorithm would leave public-key systems such as RSA and elliptic curves, in NIST's word, impotent[5]. Symmetric ciphers face only Grover's algorithm, a far weaker attack. NIST's final transition report, NIST IR 8547, published on 27 October 2026[6], says “NIST does not expect to need to transition away from these standards as part of the PQC migration.”[2] Its FAQ is blunter: AES-192 and AES-256 will still be safe for a very long time[7], and “AES 128 will remain secure for decades to come”[7]. The UK's NCSC agrees that symmetric cryptography is not significantly impacted by quantum computers[3].

So AES-256 is safe, AES-128 is safe by NIST's and the NCSC's reckoning, and so is SHA-256 hashing. The quantum risk to encrypted data lies elsewhere: in how the AES key is exchanged.

What does Grover's algorithm actually do to AES?

Grover's algorithm, published by Lov Grover in 1996[1], speeds up searching. To find one item in an unsorted list of N entries, a classical computer must check N/2 entries for a 50% chance[1]; Grover's algorithm needs about the square root of N steps[1]. Grover's paper notes that no quantum method searches much faster: his algorithm is within a small constant factor of the fastest possible quantum mechanical algorithm[1].

Brute-forcing a key is exactly this kind of search: try keys until one works. Picture a lock with a million combinations. A classical thief expects to try half a million; Grover's method would need on the order of a thousand quantum steps. That sounds alarming until you remember that each extra bit of key doubles the number of possible keys, so doubling the key length cancels the square root. NIST said so in 2016[5]: if Grover's algorithm ever becomes practically relevant, “doubling the key size will be sufficient to preserve security”[5]. Such a speed-up does not render cryptographic technologies obsolete[5].

In practice the speed-up shrinks further. Zalka proved in 1997[7] that to get it in full, all the steps of Grover's algorithm must be performed in series[7], while real attacks split the work across many machines. Quantum computers are also expected to be orders of magnitude slower and more energy intensive[7] than classical ones for the same operations. NIST therefore expects Grover's algorithm to quite likely give no advantage[7] for attacks completed within years or even decades[7]. How quantum computers could break RSA and ECC explains why public-key systems fare so much worse.

What does NIST say about AES-128, AES-192 and AES-256?

NIST grades post-quantum security in five categories[2], defined with AES and SHA as yardsticks: Category 1 means at least as hard to break as a key search on AES-128, Category 3 as on AES-192 and Category 5 as on AES-256[2]. In other words, NIST measures its new post-quantum algorithms against AES itself. Here are NIST's ratings, with public-key algorithms for contrast:

AlgorithmUsed forClassical securityNIST post-quantum ratingVerdict
AES-128Encryption128 bits[2]Category 1[2]Safe to keep using
AES-192Encryption192 bits[2]Category 3[2]Safe
AES-256Encryption256 bits[2]Category 5[2]Safe, with the widest margin
SHA-256Hashing128 bits against collisions, 256 bits against preimages[2]Category 2 (collisions), Category 5 (preimages)[2]Safe
SHA3-256[2]HashingSame as SHA-256Same as SHA-256Safe
NIST's 112-bit symmetric standards[2]Various112 bits[2]Disallowed in 2030[2]Move off them
RSA, ECDSA, ECDHKey exchange and signaturesDepends on key sizeNo longer secure[5] against a large quantum computerReplace with post-quantum algorithms

So AES-128 does not need replacing. NIST believes every approved symmetric primitive that provides at least 128 bits of classical security[2] meets at least Category 1[2], and its FAQ says current applications can continue to use AES with key sizes 128, 192, or 256 bits[7].

AES-256 is still the conservative choice for data that must stay secret for decades, and some rules demand it. The NSA's CNSA 2.0 suite for US national security systems lists AES-256[8] as its cipher, and a draft TLS profile by NSA authors says CNSA requires AES with 256-bit keys in GCM mode[9].

NIST does ask for a clean-up of weak symmetric algorithms: its 112-bit standards will be disallowed in 2030[2] (see SP 800-131A), and anything with less than 112 bits of classical security should not be used[7] at all.

Is SHA-256 safe from quantum computers?

Yes. A hash function turns any input into a short, fixed-length fingerprint. Preimage resistance means nobody can find an input that matches a given fingerprint; collision resistance means nobody can find two inputs with the same fingerprint, which is what signatures and certificates rely on. SHA-256 belongs to the SHA-2 family of FIPS 180-4[10], and SHA-3 is specified in FIPS 202[11].

NIST IR 8547 gives SHA-256 128 bits of collision security (Category 2) and 256 bits of preimage security (Category 5)[2], and the same values to SHA3-256[2]. The NCSC says hash functions such as SHA-256 are not significantly affected[3]. NIST's strongest vote of confidence is a standard: it built a post-quantum signature scheme, SLH-DSA, whose security rests on the presumed difficulty of finding preimages for hash functions[12]. That would make no sense if quantum computers threatened SHA-2 and SHA-3.

The same goes for HMAC, the keyed hash behind webhook signatures such as Paystack's HMAC SHA512[13] header. It is symmetric, since the same secret creates and checks the signature, so the quantum picture matches AES. Verifying the x-paystack-signature header shows HMAC in practice.

SHA-1 is a different case: NIST already deprecates it for all remaining technical applications[2], and will disallow it in FIPS-validated modules after 2030[2]. Bitcoin's mining rests on hashing too; is Bitcoin safe from quantum computers? covers it.

What do quantum computers mean for passwords?

Very little, directly. A well-run service stores passwords as salted hashes made with a deliberately slow password-hashing function, so a stolen database is expensive to attack. Grover's algorithm could speed up guessing by at most a square root, and every guess would still mean computing that slow hash inside the quantum computer. With NIST expecting Grover to quite likely give no advantage[7] in practical attacks, password cracking stays a classical problem.

So the dangers are the familiar ones: short or reused passwords, phishing and leaked databases. Long random passwords from a password manager and multi-factor login do far more than any change of algorithm. Files encrypted with AES-256 under a key derived from a strong passphrase stay safe; a weak passphrase is the weak point, quantum or not.

Where quantum computing does touch your login is the connection that carries it. When you sign in to a bank, SACCO or eCitizen account, the password travels inside a TLS connection whose key was agreed with public-key cryptography, and that is the part being replaced.

What did the AI-found attack on AES actually show?

On 28 July 2026[14] Anthropic reported that its Claude Mythos Preview model had found a new attack on a reduced-round version of AES. It changes nothing for anyone using AES:

  • It targets a weakened cipher. AES scrambles data in repeated rounds. The attack works only on AES-128 cut to 7 out of the full 10 rounds[15]; cryptographers study such versions to measure the full cipher's safety margin.
  • It needs an impractical amount of data. It is a chosen-plaintext attack, where the attacker gets the system to encrypt messages of its choosing, and the earlier attack it builds on assumes encryptions of 2^105 chosen plaintexts[15], which Anthropic calls completely impractical[15].
  • The gain is real but narrow. It is between 200 and 800 times faster[15] than the previous best attack on that weakened version, depending on how runtime is measured.
  • It is not quantum. It is classical cryptanalysis: evidence that AI is speeding up the search for weaknesses, not that quantum computers are closer.

Anthropic was explicit that the attack does not break the full AES cipher[14] and that “no production software will have to change as a result”[15]. What Anthropic's lattice findings mean covers this and its later work.

If AES is safe, why is encrypted data still at risk from quantum computers?

Because of how the AES key gets there. Two parties must first agree on a shared secret key, and online they do it with public-key cryptography. Google's Chrome team put it precisely: in TLS, “even though the symmetric encryption algorithms that protect the data in transit are considered safe against quantum cryptanalysis, the way that the symmetric keys are created is not.”[16]

That is the harvest now, decrypt later threat: record encrypted traffic today, break the key exchange once a large quantum computer exists, then decrypt everything with the AES key it yields. NIST calls it one of the main reasons[2] the transition is urgent. The AES layer was never the weak point; the RSA or elliptic-curve layer under it is.

The fix keeps AES and replaces the key exchange. A key-encapsulation mechanism (KEM) is a set of algorithms two parties can use to establish a shared secret key over a public channel[17], which then feeds symmetric algorithms such as AES. ML-KEM-768, NIST's recommended default[2], outputs a 32-byte shared secret[18], exactly the size of an AES-256 key. M-Pesa API calls, Paystack checkouts and banking apps all run over TLS, so for Kenyan banks and fintechs the work is in key exchange and certificates, not AES. The real risks of post-quantum migration covers that work, and the cryptography series hub maps the rest.

For developers: what should you change in your symmetric crypto?

Very little. A short checklist:

  • Keep AES, in an authenticated mode. AES-256-GCM is a sound default for new data that must stay secret for decades; existing AES-128 can stay. Never reuse a nonce under the same key.
  • Hunt down the leftovers. NIST will disallow its 112-bit symmetric standards in 2030[2] and SHA-1 in FIPS-validated modules after 2030[2].
  • Keep HMAC and SHA-2. HMAC-SHA256, HMAC-SHA512 and SHA-256 need no change. Hash passwords with a slow, salted password-hashing function, never a bare hash.
  • Separate symmetric from public-key uses. A JWT signed with HS256 uses HMAC and is fine; one signed with RS256 or ES256 uses RSA or ECDSA, which the migration must replace. API secrets are symmetric; certificates are not.
  • Let the library derive keys. Hybrid TLS turns the shared secrets into AES keys for you. If you build on a KEM directly, derive your AES keys from its output with a standard key-derivation function, not an improvised scheme.

A quick inventory of a codebase:

find-crypto-to-review.sh
# Symmetric and hash leftovers to retire: Triple DES, SHA-1, MD5, ECB mode
grep -rniE 'des-ede3|tripledes|3des|sha-?1([^0-9]|$)|md5|ecb' \
  --include='*.js' --include='*.ts' --include='*.py' --include='*.go' --include='*.java' .

# Public-key uses: these are what the post-quantum migration replaces
grep -rnE 'RS256|ES256|PS256|RSA|ECDSA|secp256r1|secp256k1|prime256v1' \
  --include='*.js' --include='*.ts' --include='*.py' --include='*.go' --include='*.java' .

Frequently asked questions

Is AES-128 still safe against quantum computers?
Yes. NIST rates AES-128 at Category 1[2], and its FAQ says “AES 128 will remain secure for decades to come”[7]. The UK's NCSC agrees that at least 128-bit keys (such as AES) can continue to be used[3]. Choose AES-256 for new data that must stay secret for decades.
Is SHA-256 quantum safe?
Yes. NIST gives it 128 bits of collision security (Category 2) and 256 bits of preimage security (Category 5)[2], and the NCSC says hash functions such as SHA-256 can also continue to be used[3]. SHA-1 is a different case: it is already deprecated.
Will quantum computers make passwords easier to crack?
Barely. Grover's algorithm offers at most a square-root speed-up on guessing, and a slow password hash would have to run inside the quantum computer for every guess. NIST expects Grover to quite likely give no advantage[7] in practical attacks. Weak, reused and phished passwords remain the real danger.
Did Anthropic's AI break AES?
No. Its result of 28 July 2026[14] attacks AES-128 cut to 7 of its 10 rounds[15], building on an attack that needs 2^105 chosen plaintexts[15]. Anthropic said “no production software will have to change as a result”[15].
Do I need to re-encrypt data stored with AES?
Not because of quantum computers, as long as the keys stayed private: NIST does not expect to need to transition away[2] from its symmetric standards. The exception is stored data whose AES key once travelled over an RSA or elliptic-curve exchange that could have been recorded: re-encrypt it under a fresh key. Traffic an attacker has already recorded cannot be re-protected, which is the harvest now, decrypt later risk.
What is the difference between Grover's and Shor's algorithms?
Grover's algorithm speeds up any search by a square root, so it only weakens symmetric ciphers and hashes, and longer keys fix that. Shor's algorithm solves the maths behind RSA and elliptic curves efficiently, leaving them impotent[5]. That is why public-key algorithms need replacing and AES does not.

Sources

  1. [1] arXiv, 29 May 1996, checked 4 December 2026
  2. [2] NIST, October 2026, checked 4 December 2026
  3. [3] UK National Cyber Security Centre, 14 August 2024, checked 4 December 2026
  4. [4] NIST Computer Security Resource Center, 26 November 2001, checked 4 December 2026
  5. [5] NIST, April 2016, checked 4 December 2026
  6. [6] NIST CSRC, 27 October 2026, checked 4 December 2026
  7. [7] NIST CSRC, 18 November 2018, checked 4 December 2026
  8. [8] US National Security Agency (NSA), 7 September 2022, checked 4 December 2026
  9. [9] IETF (Internet-Draft by NSA-CCSS authors), 30 October 2026, checked 4 December 2026
  10. [10] NIST CSRC, August 2015, checked 4 December 2026
  11. [11] NIST CSRC, August 2015, checked 4 December 2026
  12. [12] NIST, 13 August 2024, checked 4 December 2026
  13. [13] Paystack (developer documentation), checked 4 December 2026
  14. [14] Anthropic, 28 July 2026, checked 4 December 2026
  15. [15] Anthropic, 28 July 2026, checked 4 December 2026
  16. [16] Google (Chromium Blog), 10 August 2023, checked 4 December 2026
  17. [17] NIST CSRC, September 2025, checked 4 December 2026
  18. [18] NIST, 13 August 2024, checked 4 December 2026

Related guides