Cloud Engineer Lab
Cloud Engineer Lab
Cloud Engineer Lab
Cloud Engineer Lab
© 2026
Why Quantum Computers Threaten Today's Encryption

Why Quantum Computers Threaten Today's Encryption

How RSA, ECC, TLS, certificates, PKI and digital signatures work, why Shor's algorithm could break them, and why it's a future threat you plan for today.

23 min read
Share

Every time you open a banking app, connect to a corporate VPN, sign in with a passkey, install a Windows update or enrol a laptop in Intune, the same small family of mathematical ideas is quietly doing the work. They are called public-key cryptography, and almost all of it rests on two algorithms: RSA and elliptic-curve cryptography (ECC).

Both are believed to be safe against every computer we have today. Both would be broken by a large enough quantum computer running Shor's algorithm. That single fact is why governments have set deadlines, why browsers are already changing how they connect, and why quantum computing matters to every IT and security team, including the ones that will never touch a quantum computer.

Read this first: a future threat, not a broken Internet

No quantum computer today can break RSA or ECC, or come anywhere close. The largest numbers factored with Shor's algorithm on real quantum hardware are tiny (15 and 21). Breaking a real 2048-bit RSA key is estimated to need around a million high-quality physical qubits running for days, far beyond any machine that exists. This post is about a future cryptographic threat, and why the sensible response is to plan for it now, calmly, rather than to panic or to ignore it.

Stage 08 of the learning path

This post opens stage 08, Quantum Security, of the Quantum Computing & Technology learning path. It's also the bridge between the quantum section and this site's security posts: if you've read the Intune PKI deep dive or the certificate lifecycle post, you already know the systems at stake. For how Shor's algorithm works, see Quantum Algorithms: Why Are They Different?.


Today: What RSA and ECC Hold Up

A tree diagram. RSA and ECC, public-key cryptography, highlighted at the top, support the secure Internet, trust between strangers at scale, which branches into four: HTTPS and TLS for websites and APIs, VPN for IPsec, TLS and WireGuard, PKI for certificate authorities and certificates, and signatures for code, updates and logins
Almost every security system you use depends on one layer of public-key cryptography. That layer is the one a large quantum computer would attack.

The diagram is short, but it hides a lot of infrastructure. HTTPS protects every website and API. VPNs protect remote workers and site-to-site links. PKI issues the certificates that devices use for Wi-Fi, VPN and authentication. Digital signatures prove that software updates, firmware, documents and login tokens are genuine. Remove the trust layer at the top and every one of them needs replacing.

To understand why a quantum computer threatens this layer, and why it threatens some cryptography but not all, you need to know what each piece does.


Public-Key Cryptography: Solving the Stranger Problem

Encryption itself is old. If you and I share a secret key, we can encrypt messages with a fast symmetric algorithm such as AES, and anyone without the key sees noise. The hard question is: how do two strangers on the Internet agree on a secret key without anyone listening in? Your browser has never met your bank's server before, and everything they send each other can be watched.

Public-key cryptography, invented in the 1970s, solves this with a pair of linked keys:

  • A public key, which you can give to anyone.
  • A private key, which you never share.

Everyday analogy: a public key is like an open padlock that you hand out freely. Anyone can snap it shut on a box and send it to you, but only you have the key that opens it. And a digital signature works in reverse: like a wax seal that only you can make, but anyone can check.

Symmetric (e.g. AES)Public-key (RSA, ECC)
KeysOne shared secret keyA public and private key pair
SpeedVery fastMuch slower
Main jobEncrypting the actual dataAgreeing keys, proving identity, signing
Problem it solvesKeeping data secretLetting strangers trust each other
Quantum threatSmall (Grover's algorithm)Severe (Shor's algorithm)

In practice, systems use both: public-key cryptography to agree a key and prove who's who, then fast symmetric encryption for the data itself. Keep that split in mind, because the quantum threat lands almost entirely on the public-key half.


RSA: Security From Factoring

RSA, published in 1977 by Rivest, Shamir and Adleman, is built on a simple asymmetry: multiplying two large prime numbers is easy, but splitting the result back into those primes (factoring) is extremely hard.

  • The private key is built from two secret primes, p and q.
  • The public key includes their product, n = p × q, which everyone can see.
  • Anyone can encrypt with n, but decrypting requires a number derived from p and q. So whoever can factor n can compute the private key.

Here's the whole idea with toy numbers (real keys use primes hundreds of digits long):

python
p, q = 61, 53                 # the secret primes
n = p * q                     # 3233, part of the public key
phi = (p - 1) * (q - 1)
e = 17                        # public exponent
d = pow(e, -1, phi)           # private exponent, needs p and q
 
msg = 65
c = pow(msg, e, n)            # anyone can encrypt with (n, e)
print("ciphertext =", c, "decrypted =", pow(c, d, n))
 
# An attacker who can factor n recovers the private key
f = next(k for k in range(2, n) if n % k == 0)
d2 = pow(e, -1, (f - 1) * (n // f - 1))
print("attacker factors", n, "=", f, "x", n // f, "-> message", pow(c, d2, n))
text
ciphertext = 2790 decrypted = 65
attacker factors 3233 = 53 x 61 -> message 65

For a four-digit n, the attacker's loop finishes instantly. For a real 2048-bit key (a number about 617 digits long), no known classical method comes close. The largest RSA challenge number ever factored classically, RSA-250 in 2020, had 829 bits and took roughly 2,700 years of computer core time. Each extra bit makes the job harder, and 2048 bits is far beyond reach.

That's the entire security of RSA: factoring is hard. It is not proven to be hard; it's just that nobody has found a fast classical method in decades of trying.


ECC: Smaller Keys, Same Kind of Weakness

Elliptic-curve cryptography uses a different hard problem. Points on an elliptic curve can be "added" together, and adding a point to itself many times is easy. Working backwards, from the result to how many times the point was added, is called the elliptic-curve discrete logarithm problem, and it is believed to be very hard.

ECC's big advantage is efficiency: it gets the same security as RSA with much smaller keys.

Security levelRSA key sizeECC key size
112-bit (minimum today)2048 bits224 bits
128-bit (common)3072 bits256 bits
192-bit7680 bits384 bits
256-bit15360 bits521 bits

Smaller keys mean faster handshakes and smaller certificates, so ECC has taken over much of modern cryptography:

  • TLS key exchange (ECDHE, usually with the X25519 or P-256 curves) in almost every HTTPS connection.
  • ECDSA and Ed25519 signatures in certificates, SSH keys and code signing.
  • Passkeys and FIDO2 security keys, which sign login challenges with ECC (see Phishing-Resistant MFA).
  • TPM-backed keys, Windows Hello, mobile devices and cryptocurrencies.

Here's the uncomfortable twist: Shor's algorithm breaks elliptic curves too, and because ECC keys are so much smaller, estimates suggest a quantum computer would need fewer logical qubits to break a 256-bit elliptic-curve key than a 2048-bit RSA key. Moving from RSA to ECC, which improved security against classical attacks, gives no protection against quantum ones.


Digital Signatures: Proving Who Sent It

Encryption keeps things secret. Signatures prove where something came from and that it hasn't been changed. The signer uses their private key to produce a signature over the data; anyone can check it with the public key.

Signatures are arguably even more important than encryption, because so much trust depends on them:

Where signatures are usedWhat they prove
TLS certificatesThis server really is your bank
Certificate authoritiesThis certificate was issued by a trusted CA
Windows Update, app stores, driversThis software really came from the vendor
Secure Boot and firmwareThis boot code hasn't been tampered with (see Hardware Security)
Login tokens (SAML, OIDC, JWTs)This identity provider really issued this token (see OAuth vs OpenID Connect vs SAML)
Signed documents and emailsThis person really signed this

Almost all of these use RSA or ECDSA today. A quantum computer that can compute private keys from public keys can forge signatures: issue a fake certificate, sign malware so it looks like an official update, or mint login tokens.


TLS: Where It All Comes Together

TLS (the "S" in HTTPS) is the best place to see exactly what a quantum computer would and wouldn't break, because one connection uses all three kinds of cryptography.

Three lanes describing one TLS 1.3 connection. Lane one, key exchange, uses ECDHE with X25519 or P-256, or RSA in old setups; Shor's algorithm could recover the session key from a recorded handshake, so it is marked at risk retroactively, because traffic recorded today could be decrypted later. Lane two, authentication, uses the certificate chain and RSA or ECDSA signatures; Shor's algorithm could forge signatures and impersonate a server, so it is marked at risk from Q-day, since it cannot rewrite the past but must be replaced first. Lane three, bulk encryption, uses AES-GCM, ChaCha20 and SHA-256; Grover's algorithm gives at most a square-root speed-up, so it is marked safe with strong keys, as AES-256 stays strong. A footer notes that forward secrecy does not help against a quantum attacker because the ephemeral key shares are in the recording
Three jobs, three different answers. The key exchange is the urgent one, because recorded traffic can be attacked later.

1. Key exchange

Browser and server each generate a temporary key pair and swap the public halves (usually with elliptic-curve Diffie-Hellman, ECDHE). Both then compute the same shared secret, which nobody watching can work out classically. Quantum impact: an attacker with a quantum computer could compute the secret from the public halves. Worse, they can do it later, from a recording.

2. Authentication

The server sends its certificate and signs the handshake with its private key, proving it really is the site you asked for. Quantum impact: forged signatures would let an attacker impersonate the server, but only in a live connection after a quantum computer exists. Signatures checked in the past stay valid.

3. Bulk encryption

The shared secret becomes symmetric keys, and all data is encrypted with AES-GCM or ChaCha20. Quantum impact: small. Grover's algorithm gives at most a square-root speed-up, which large keys absorb.

Forward secrecy does not save you here

Modern TLS uses fresh, temporary keys for every connection ("forward secrecy"), so stealing a server's long-term key later doesn't unlock old sessions. That protects against classical attackers. It does not protect against a quantum attacker who recorded the handshake, because the temporary public key shares are in the recording, and Shor's algorithm can work backwards from them to the session key.

This difference between the first two steps is the most important idea in quantum security:

  • Key exchange and encryption are at risk retroactively. Anything recorded today could be decrypted on the day a large quantum computer exists. This is the "harvest now, decrypt later" threat.
  • Signatures are at risk from that day forward. A forged signature can't change what was already verified, but every system that still trusts RSA or ECC signatures on that day can be fooled.

Certificates and PKI: A Long-Lived Chain of Trust

Certificates are how public keys are trusted at scale. A certificate binds a public key to a name (a website, a device, a user) and is signed by a certificate authority (CA). The CA's own certificate is signed by a higher CA, up to a root CA that operating systems and browsers trust directly. Intune, AD CS and Microsoft Cloud PKI all work this way, as covered in the PKI deep dive and the Cloud PKI vs AD CS comparison.

Every link in that chain is a signature, and almost every one uses RSA or ECDSA. That makes PKI the slowest part of the system to change, for three reasons:

  • Roots live for decades. Root CA certificates are often valid for 20 years or more. A root created today may still be trusted after the date when quantum attacks become possible.
  • Everything below the root must change too. Issuing CAs, templates, device certificates, relying parties (RADIUS, VPN gateways, web servers) and the devices that check them all need to support new algorithms.
  • Hardware is involved. Smart cards, TPMs, HSMs, network appliances and embedded devices may only support the algorithms they shipped with.

You can see this on any Windows machine. This PowerShell lists the public-key algorithms in the local machine's trusted root and personal certificate stores:

powershell
# Which public-key algorithms do this machine's certificates use?
Get-ChildItem Cert:\LocalMachine\Root, Cert:\LocalMachine\My |
    Group-Object { $_.PublicKey.Oid.FriendlyName } |
    Select-Object Name, Count
 
# Trusted roots still valid after 2030
Get-ChildItem Cert:\LocalMachine\Root |
    Where-Object { $_.NotAfter -gt [datetime]'2030-01-01' } |
    Select-Object Subject, @{ n = 'Key'; e = { $_.PublicKey.Oid.FriendlyName } }, NotAfter

On the test machine used for this post, the first command found 32 RSA and 5 ECC certificates, and 24 trusted roots valid beyond 2030, including Microsoft's own 2011 root certificate authority, an RSA root valid until 2036. Every one of them is quantum-vulnerable. None of that is a problem today, but it shows how much of the trust chain was built long before anyone planned for quantum computers.

Your Intune certificates are in scope

SCEP and PKCS certificates deployed through Intune for Wi-Fi, VPN and authentication (see Certificate-Based Authentication) typically use RSA 2048 keys. They're short-lived, which is good news: certificates that renew every year can switch algorithms relatively quickly once the CA, the devices and the relying parties support it. The long-lived roots and the infrastructure that checks certificates are the hard part.


VPNs: The Same Problem, Again

VPNs use exactly the same building blocks:

  • IPsec / IKEv2 (Always On VPN, many site-to-site tunnels) agrees keys with Diffie-Hellman or elliptic-curve Diffie-Hellman and authenticates with certificates.
  • TLS-based VPNs (many SSL VPNs and OpenVPN) inherit TLS's key exchange and certificates.
  • WireGuard uses Curve25519 for key exchange, with an optional pre-shared key that adds a layer of quantum resistance if it's managed properly.

So a recorded VPN session is a "harvest now, decrypt later" target in the same way as HTTPS, and it's often a more valuable one, because VPN traffic carries internal business data.


Shor's Algorithm: The Attack

Now the attacker's side. In 1994, Peter Shor showed that a quantum computer could solve both factoring and discrete logarithms, including the elliptic-curve version, exponentially faster than any known classical method. The algorithms post walks through it with a worked example (factoring 15); the essential idea is:

  1. Factoring can be turned into finding the period of a repeating sequence of numbers.
  2. A quantum computer puts many inputs into superposition at once and uses interference (through the Quantum Fourier Transform) to reveal that period.
  3. A classical computer turns the period into the factors, and the factors into the private key.

Here is the threat as a chain, step by step:

Future quantum computer: large, error-corrected, fault-tolerant
Shor's algorithm: run against a public key
Potential attack: the private key is computed from the public key
RSA / ECC: key exchange and signatures no longer trustworthy
Cryptographic risk: decrypted recordings, forged certificates and signatures

Two things make this different from an ordinary vulnerability:

  • It can't be patched. It isn't a bug in an implementation; it attacks the mathematics. The only fix is to replace the algorithms.
  • Public keys are, by design, public. Every certificate, every TLS handshake and every signed file hands the attacker exactly the input Shor's algorithm needs.

What a Quantum Computer Does Not Break

The threat is serious but specific. Not all cryptography is affected equally:

CryptographyExamplesQuantum attackImpactWhat to do
Public-key encryption and key exchangeRSA, ECDH, Diffie-HellmanShor❌ BrokenReplace with post-quantum algorithms
Digital signaturesRSA, ECDSA, Ed25519Shor❌ BrokenReplace with post-quantum signatures
Symmetric encryptionAES-128, AES-256, ChaCha20Grover✅ Weakened, not brokenPrefer AES-256 for long-term data
Hash functionsSHA-256, SHA-384, SHA-3Grover-style✅ Largely safePrefer longer outputs for long-term use
Passwords and MFA codesPassword hashes, TOTPGrover✅ Largely unaffectedNormal good practice

Why is symmetric encryption safe? Grover's algorithm speeds up brute-force key search, but only by a square root: searching 2¹²⁸ keys takes about 2⁶⁴ quantum steps instead of 2¹²⁸ classical ones. That sounds alarming, but each quantum step is slow, the steps can't be spread across many machines efficiently, and the overheads of error correction are huge. NIST considers AES-128 secure for the foreseeable future, and AES-256 leaves an enormous margin. BitLocker, encrypted backups and AES-encrypted data at rest are not the main concern (see BitLocker and Endpoint Encryption), as long as the keys protecting them aren't themselves wrapped with RSA or ECC.


Reality Check: How Far Away Is This?

This is where many headlines go wrong, so it's worth being precise.

Where quantum computers are today. The largest machines have hundreds to a few thousand physical qubits, with error rates around 0.1% to 1% per operation, and error correction is only beginning to work (covered in Quantum Error Correction). Shor's algorithm on real hardware has factored only trivially small numbers like 15 and 21.

What's needed. A machine able to break RSA or ECC is often called a cryptographically relevant quantum computer (CRQC). In 2019, the best estimate for breaking RSA-2048 was about 20 million noisy physical qubits running for 8 hours. In 2025, Craig Gidney of Google cut that to under one million noisy qubits, running for under a week. Elliptic-curve keys are expected to need fewer resources than RSA-2048. Either way, that's a fault-tolerant machine with roughly a thousand or more logical qubits and billions of reliable operations.

When. Nobody knows. Vendor roadmaps aim at fault-tolerant machines around the end of this decade, but useful scientific machines and cryptographically relevant ones are not the same thing. Surveys of quantum experts give a meaningful (and growing) probability of a CRQC within 10 to 15 years, with wide disagreement. Government agencies plan around migration deadlines in the early-to-mid 2030s precisely because the date is uncertain.

Headline you might seeWhat's actually true
"Quantum computer breaks RSA"Almost always a tiny number, often using tricks that don't scale or that aren't Shor's algorithm at all
"RSA is dead"RSA-2048 is secure against every existing computer; the concern is future machines
"Quantum computers can break any encryption"Symmetric encryption and hashes are largely safe; the threat is to public-key cryptography
"We have decades, so ignore it"Recorded data and long migration times mean some organisations are already exposed
"Switching to ECC fixes it"ECC is broken by Shor's algorithm too, possibly sooner than RSA

Why It Matters Now: Harvest Now, Decrypt Later

If a CRQC is years away, why are governments setting deadlines today? Because of two facts that don't depend on when it arrives.

1. Recorded data can be decrypted later. An attacker who records encrypted traffic today (a VPN tunnel, an API call, a backup sent over TLS) can store it until a quantum computer exists. Intelligence agencies have warned about exactly this "harvest now, decrypt later" strategy. Data that must stay secret for many years (health records, legal and financial records, trade secrets, government and defence information, personal data with long legal retention) is already at risk.

2. Migration takes years. Replacing cryptography touches protocols, libraries, operating systems, applications, certificates, hardware security modules, smart cards, network appliances and vendor products. Large organisations have taken a decade or more to complete earlier cryptographic migrations, such as moving away from SHA-1.

Michele Mosca, a quantum computing researcher, turned these two facts into a simple test:

A timeline chart of Mosca's inequality, with years from today to plus 20 years. Your timeline row shows y, migration, taking 7 years, followed by x, data must stay secret, for 10 years, ending at year 17. The threat row shows z, years until a quantum computer can break RSA or ECC, ending at year 12, marked Q-day. The gap between year 12 and year 17 is shaded and labelled exposed, 5 years. A note says the numbers are illustrative, nobody knows z precisely, and x and y are the parts you control
Mosca's inequality with illustrative numbers. If x plus y is greater than z, some of the data you protect is already exposed.
  • x: how long your data must stay secret.
  • y: how long it will take you to migrate to quantum-safe cryptography.
  • z: how long until a cryptographically relevant quantum computer exists.

If x + y > z, you have a problem today. In the example, data must stay secret for 10 years and migration takes 7, so anything encrypted near the end of the migration must stay safe until year 17. If a CRQC arrives in year 12, five years of that data is exposed. You can't control z, but you can shorten y by starting early.


What's Affected in a Typical Organisation

SystemTypical algorithms todayQuantum riskUrgency
Public websites and APIs (TLS)ECDHE, RSA or ECDSA certificatesHarvest now, decrypt later; future impersonationHigh for sensitive data
VPN (IKEv2, TLS, WireGuard)DH, ECDH, certificatesHarvest now, decrypt laterHigh
Internal PKI (AD CS, Cloud PKI)RSA 2048 to 4096, ECDSAForged certificates after Q-day; long-lived rootsHigh (slow to change)
Code signing and software updatesRSA, ECDSASigned malware after Q-dayHigh (long-lived trust)
Secure Boot and firmwareRSAMalicious boot code after Q-dayMedium to high (hardware-bound)
Identity tokens (SAML, OIDC, JWT)RSA, ECDSAForged tokens after Q-dayMedium (keys rotate)
Passkeys, FIDO2, smart cardsECDSA, RSAForged authentication after Q-dayMedium
Email encryption and signing (S/MIME)RSAHarvest now, decrypt laterMedium to high
Data at rest (BitLocker, storage)AESSmall, if keys aren't wrapped with RSA or ECCLow

What You Can Do Now

The fix is post-quantum cryptography (PQC): new public-key algorithms based on mathematical problems that are believed to be hard for quantum computers too. In August 2024, NIST published the first standards, ML-KEM (FIPS 203) for key exchange and ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) for signatures. Its proposed transition plan deprecates RSA and elliptic-curve algorithms by 2030 and disallows them by 2035. Browsers and large websites already use hybrid key exchange, combining classical X25519 with ML-KEM, so much of your HTTPS traffic may already be protected against "harvest now, decrypt later" without you noticing.

Stage 09 covers PQC in depth. For now, these are the practical first steps:

1. Build a cryptographic inventory

Find where RSA and ECC are used: certificates, CAs, TLS endpoints, VPNs, code signing, HSMs, applications, vendor products. Start with the PowerShell above for certificate stores, then your PKI and network devices.

2. Classify data by how long it must stay secret

That's the x in Mosca's inequality. Long-lived sensitive data travelling over networks is the first priority, because of harvest now, decrypt later.

3. Prioritise key exchange, then long-lived signatures

Protecting data in transit with hybrid post-quantum key exchange is the most urgent step. Next come roots, code signing and firmware, because they're trusted for years.

4. Design for crypto-agility

Make algorithms configurable rather than hard-coded, so swapping them is a configuration change, not a rebuild. The lessons from secrets, certificates and tokens apply: know what you have and how to rotate it.

5. Ask your vendors

Ask for their post-quantum roadmaps: browsers, operating systems, VPN gateways, HSMs, PKI products, identity providers and cloud services. Most of your migration will arrive through them.

6. Use strong symmetric settings

Prefer AES-256 and SHA-384 or stronger for long-term data, which is cheap and removes any doubt about Grover's algorithm.

Quick Recap

  • Public-key cryptography (RSA and ECC) is the trust layer under HTTPS, VPNs, PKI, certificates and digital signatures.
  • RSA relies on factoring being hard; ECC relies on the elliptic-curve discrete logarithm being hard. Shor's algorithm makes both easy on a large quantum computer.
  • ECC is not safer against quantum attacks; it may fall sooner than RSA.
  • In TLS, key exchange is at risk retroactively (harvest now, decrypt later), signatures from Q-day onward, and AES encryption hardly at all.
  • PKI is the slowest part to change, because roots live for decades and hardware is involved.
  • No quantum computer can break RSA or ECC today; the threat is a future, fault-tolerant machine, probably needing around a million physical qubits.
  • It matters now because recorded data can be decrypted later and migration takes years: if x + y > z, act today.
  • The fix is post-quantum cryptography, already standardised by NIST and already appearing in browsers.

What's Next on the Learning Path

The next stage, 09, Post-Quantum Cryptography: How Do We Protect the Internet?, explains the new algorithms (ML-KEM, ML-DSA, SLH-DSA), how hybrid key exchange works in TLS today, what crypto-agility means in practice, and how an enterprise, including its PKI and Intune certificates, can plan the migration. The full 11-stage path is listed at the end of the beginner's guide.

CChetan Yamger

Written by

Chetan Yamger

Cloud Engineer · AI Automation Architect · Modern Workplace Consultant

Cloud Engineer, AI Automation Architect, and Modern Workplace Consultant based in Amsterdam, Netherlands. Specializing in scalable, secure enterprise solutions with Microsoft Azure, Intune, PowerShell, and AI-driven automation using ChatGPT, Gemini, and modern LLM technologies.

Cloud & Modern WorkplaceMicrosoft Intune & MDMAzure & Microsoft 365AI AutomationPrompt EngineeringPowerShell & Graph APIWindows AutopilotConditional Access & Zero TrustSCCM / MECM & MSIXVDI / WVDPower BINode.js & Next.js
Newsletter

Stay in the loop.
New articles, straight to you.

Deep-dive technical articles on Intune, PowerShell, and AI — no noise, no spam.

New article notifications
No spam, ever
Free forever

Discussion

Share your thoughts — your email stays private

Leave a comment

0/2000

Your email is used to prevent spam and will never be displayed.