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.
Topic: Cybersecurity Foundations in Cybersecurity & Ethical Hacking · Explainer
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?
- Which Algorithms Are Affected?
- What Is Harvest Now, Decrypt Later?
- What Has NIST Standardised?
- What Is the Transition Timeline?
- Where Is Post-Quantum Cryptography Already Used?
- How Can You Try It Yourself?
- How Should an Organisation Prepare?
- References
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?
| Algorithm | Used for | Quantum impact | Action |
|---|---|---|---|
| RSA | Key exchange, signatures, certificates | Broken by Shor's algorithm | Replace |
| ECDH, ECDSA, Ed25519 | TLS key exchange, signatures | Broken by Shor's algorithm | Replace |
| Diffie-Hellman | Key exchange, VPNs | Broken by Shor's algorithm | Replace |
| AES-128 | Data encryption | Weakened by Grover's algorithm | Prefer AES-256 for long-term data |
| AES-256, SHA-256, SHA-3 | Encryption, hashing | Considered adequate | Keep |
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:
| Standard | Algorithm | Based on | Purpose |
|---|---|---|---|
| FIPS 203 | ML-KEM | CRYSTALS-Kyber (lattices) | Key encapsulation |
| FIPS 204 | ML-DSA | CRYSTALS-Dilithium (lattices) | Digital signatures |
| FIPS 205 | SLH-DSA | SPHINCS+ (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?
- Build a cryptographic inventory: protocols, libraries, certificates, hardware security modules and vendor products.
- Rank systems by how long their data must stay confidential.
- Prefer crypto-agile designs where algorithms can change through configuration.
- Enable hybrid key exchange where your software supports it.
- Ask vendors for their post-quantum roadmaps and put requirements into contracts.
- 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
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0