Quantum Computing and Encryption: Post-Quantum Cryptography Explained

A large, error-corrected quantum computer running Shor's algorithm could break the public-key cryptography the internet relies on today, including RSA, Diffie-Hellman and elliptic-curve cryptography. Symmetric encryption such as AES-256 and hash functions are much less affected. No such machine exists yet, and nobody can say reliably when one will, but data stolen today could be decrypted later.

Jul 29, 2025 - 10:38
Updated: 
102.1k

Cybersecurity Foundations in Cybersecurity & Ethical Hacking · Explainer

Quantum Computing and Encryption: Post-Quantum Cryptography Explained

Quick answer: A large, error-corrected quantum computer running Shor's algorithm could break the public-key cryptography the internet relies on today, including RSA, Diffie-Hellman and elliptic-curve cryptography. Symmetric encryption such as AES-256 and hash functions are much less affected. No such machine exists yet, and nobody can say reliably when one will, but data stolen today could be decrypted later. NIST published its first post-quantum standards in August 2024 (ML-KEM, ML-DSA and SLH-DSA), and its October 2026 transition guidance, NIST IR 8547, sets out a move away from quantum-vulnerable algorithms that ends with disallowing them after 2035. Organisations should inventory their cryptography now and plan migration.

Key takeaways

  • Quantum computers threaten public-key algorithms, not AES-256.
  • Harvest now, decrypt later makes long-lived secrets urgent today.
  • FIPS 203 (ML-KEM), 204 (ML-DSA) and 205 (SLH-DSA) are the current NIST standards.
  • Hybrid key exchange is already enabled by default in major browsers.
  • Migration starts with a cryptographic inventory and crypto-agility.

Table of Contents

Why Do Quantum Computers Threaten Encryption?

RSA relies on the difficulty of factoring large numbers, and elliptic-curve cryptography on the discrete logarithm problem. In 1994 Peter Shor showed that a quantum computer could solve both efficiently. Grover's algorithm gives a smaller, square-root speed-up against brute-force search, which is why longer symmetric keys such as AES-256 are considered adequate. Today's quantum computers are far too small and noisy to run Shor's algorithm against real key sizes.

Which Algorithms Are Affected?

AlgorithmUsed forQuantum impactAction
RSAKey exchange, signatures, certificatesBroken by Shor's algorithmReplace
ECDH, ECDSA, Ed25519TLS key exchange, signaturesBroken by Shor's algorithmReplace
Diffie-HellmanKey exchange, VPNsBroken by Shor's algorithmReplace
AES-128Data encryptionWeakened by Grover's algorithmPrefer AES-256 for long-term data
AES-256, SHA-256, SHA-3Encryption, hashingConsidered adequateKeep

What Is Harvest Now, Decrypt Later?

An attacker can record encrypted traffic today and store it until a quantum computer can break the key exchange. Anything that must stay secret for many years, such as health records, state secrets, intellectual property or long-term financial data, is already at risk if it travels over quantum-vulnerable key exchange. Signatures are different: they only need replacing before forgery becomes possible.

What Has NIST Standardised?

NIST approved three standards on 13 August 2024:

StandardAlgorithmBased onPurpose
FIPS 203ML-KEMCRYSTALS-Kyber (lattices)Key encapsulation
FIPS 204ML-DSACRYSTALS-Dilithium (lattices)Digital signatures
FIPS 205SLH-DSASPHINCS+ (hashes)Digital signatures, conservative backup

FN-DSA, based on Falcon, is planned as FIPS 206. On 11 March 2025 NIST selected HQC, a code-based algorithm, as a backup key encapsulation mechanism, so that not everything depends on lattices. Details are on the NIST PQC news page.

What Is the Transition Timeline?

NIST published IR 8547, Transition to Post-Quantum Cryptography Standards, on 27 October 2026. It sets the schedule for moving federal systems off quantum-vulnerable public-key algorithms such as RSA, Diffie-Hellman and elliptic-curve cryptography, which are to be disallowed after 2035. The initial draft had proposed deprecating the weaker 112-bit versions after 2030; check the final document for the exact dates that apply to your systems. Other governments, including the UK's NCSC, have published similar migration timelines ending around 2035.

Where Is Post-Quantum Cryptography Already Used?

  • Web browsing: Chrome, Firefox and other browsers support hybrid key exchange combining X25519 with ML-KEM, as described on the Google Security blog.
  • Messaging: Signal added post-quantum key agreement with PQXDH, and Apple introduced PQ3 for iMessage.
  • Libraries: OpenSSL 3.5 added ML-KEM, ML-DSA and SLH-DSA.
  • SSH: OpenSSH supports hybrid post-quantum key exchange and now uses it by default.

Hybrid modes combine a classical and a post-quantum algorithm, so the connection stays secure if either one holds.

How Can You Try It Yourself?

With OpenSSL 3.5 or later:

# list available post-quantum key encapsulation and signature algorithms
openssl list -kem-algorithms | grep -i mlkem
openssl list -signature-algorithms | grep -i -e mldsa -e slh

# generate an ML-DSA-65 key pair
openssl genpkey -algorithm ML-DSA-65 -out mldsa.key
openssl pkey -in mldsa.key -pubout -out mldsa.pub

# sign and verify a file
openssl pkeyutl -sign -inkey mldsa.key -in report.pdf -rawin -out report.sig
openssl pkeyutl -verify -pubin -inkey mldsa.pub -in report.pdf -rawin -sigfile report.sig

# check which key exchange a server negotiates
openssl s_client -connect example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i "group"

Post-quantum keys and signatures are larger than elliptic-curve ones, which matters for constrained devices and protocols with size limits.

How Should an Organisation Prepare?

  1. Build a cryptographic inventory: protocols, libraries, certificates, hardware security modules and vendor products.
  2. Rank systems by how long their data must stay confidential.
  3. Prefer crypto-agile designs where algorithms can change through configuration.
  4. Enable hybrid key exchange where your software supports it.
  5. Ask vendors for their post-quantum roadmaps and put requirements into contracts.
  6. Test performance and compatibility before wide rollout.

Read our introduction to post-quantum cryptography and quantum cryptography, or talk to a WebAsha training advisor.

References

Frequently Asked Questions

No. Current quantum computers are too small and noisy to break real RSA or elliptic-curve keys.

Public-key algorithms such as RSA, Diffie-Hellman and elliptic-curve cryptography, through Shor’s algorithm.

AES-256 is considered adequate; Grover’s algorithm only gives a square-root speed-up against brute force.

New public-key algorithms believed to resist quantum attacks while running on ordinary computers.

FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), approved in August 2024.

Recording encrypted data today in order to decrypt it once a capable quantum computer exists.

NIST IR 8547, published in October 2026, plans to disallow quantum-vulnerable public-key algorithms after 2035.

Yes. Browsers, Signal, iMessage, OpenSSH and OpenSSL already support post-quantum or hybrid modes.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.