Post-Quantum Cryptography Explained

Almost everything you do online is protected by encryption: your passwords, your bank details, your private messages, and your company’s internal data. That encryption rests on mathematical problems that are hard for today’s computers to solve. Quantum computers change that equation. They are not magic, and they are not about to break the internet tomorrow, but they are powerful enough at specific kinds of mathematics that the cryptography we rely on today will eventually need replacing. Post-quantum cryptography is the field building that replacement, and understanding it now will save you from a rushed, expensive migration later.

This guide explains post-quantum cryptography in plain language: what quantum computers actually threaten, why the danger is closer than it looks, which new algorithms are being standardized, and what you can practically do today to prepare. You do not need a physics degree or advanced mathematics to follow along. If you have ever wondered why cryptographers are suddenly talking about “quantum-safe” everything, this is the explainer that puts the pieces together.

A Quick Refresher: How Today’s Encryption Works

To understand the quantum threat, you first need a rough picture of how encryption works today. There are two main kinds. Symmetric encryption uses one shared secret key to lock and unlock data, like a single key for a padlock. It is fast and efficient, and it is used to encrypt the actual data flowing between your browser and a website. Asymmetric, or public-key, encryption uses a pair of keys: a public key anyone can use to lock a message, and a private key only the owner holds to unlock it. This solves the hard problem of how two strangers can agree on a secret over an open network.

The two most widely used public-key systems are RSA and elliptic-curve cryptography (ECC). RSA’s security rests on the difficulty of factoring very large numbers into their prime factors. ECC’s security rests on the difficulty of a related problem on elliptic curves. For classical computers, both problems are so hard that breaking a properly sized key would take longer than the age of the universe. That is why the entire internet trusts them: every HTTPS connection, every software update signature, every VPN tunnel, and every encrypted email depends on one of these two systems, at least for the initial key exchange or digital signature.

Here is the catch: “hard for a classical computer” is not the same as “hard for a quantum computer.” Quantum computers compute differently. They exploit quantum mechanical effects to explore many possibilities at once in ways that classical machines cannot match. For most everyday tasks, that gives them no advantage at all. But for a small set of mathematical problems, including factoring and the elliptic-curve problem, quantum algorithms offer a dramatic speedup. That is the entire threat in one sentence: the two foundations of public-key cryptography are exactly the problems quantum computers are good at solving.

Why Quantum Computers Threaten RSA and ECC

The key result is Shor’s algorithm, published by mathematician Peter Shor in 1994. Shor showed that a sufficiently powerful quantum computer could factor large numbers and solve discrete logarithms — the problems behind RSA and ECC — in reasonable time. Where a classical computer would need billions of years, a quantum computer with enough stable qubits could do it in hours or days. This is not a theoretical curiosity about a faster computer; it is a different kind of computation that turns an impossible problem into a feasible one.

It is important to be precise about what quantum computers do and do not break. Symmetric encryption, like AES, is much less affected. The best-known quantum attack on symmetric ciphers, Grover’s algorithm, only gives a quadratic speedup, which means doubling the key length roughly restores the original security. Hash functions are similarly weakened but not broken. The real danger is concentrated in public-key cryptography: RSA, ECC, Diffie-Hellman key exchange, and the digital signature schemes built on them. Those are the systems that need replacing, and they are everywhere.

It is also important to be honest about the timeline. Building a quantum computer large and stable enough to run Shor’s algorithm against real-world key sizes is an enormous engineering challenge. Qubits are fragile, error rates are high, and the machines that exist today are far from the millions of physical qubits that estimates suggest would be needed. No public demonstration has broken even a toy-sized RSA key with a quantum computer. Reasonable estimates range from a decade to several decades before a cryptographically relevant quantum computer exists, and some experts doubt it will ever arrive. But cryptography planning cannot wait for certainty, for a reason explained in the next section.

Harvest Now, Decrypt Later

The most unsettling part of the quantum threat is that attackers do not need to wait for a quantum computer to exist. They can record encrypted traffic today and decrypt it later, once a capable machine is available. This is called “harvest now, decrypt later,” and it is a real, practical concern for any data that must stay secret for a long time: medical records, state secrets, trade secrets, legal communications, and personal data with a long shelf life. If your data needs to stay confidential for ten or twenty years, then the quantum threat is not a distant problem. It is a problem about data you are already sending.

This changes the urgency calculation completely. If you only cared about data that is secret for a few days, you could afford to wait. But long-lived secrets are already exposed to future decryption, and the only defense is to move to encryption that a quantum computer cannot break, before the harvested data becomes valuable. Governments and standards bodies have taken this seriously for exactly this reason: the migration to post-quantum cryptography is not about reacting to a machine that exists today, but about protecting data whose secrecy must outlive the arrival of that machine.

There is a second timing problem: migration is slow. The last major cryptographic transition, from older algorithms to the ones we use now, took many years across browsers, servers, devices, and embedded systems. Some systems, like industrial controllers and medical devices, are updated rarely or never. If a cryptographically relevant quantum computer appeared suddenly, the world could not switch overnight. Starting the migration early is the only way to finish it in time, and that is why standardization work began years before any quantum computer was close to threatening real keys.

What Post-Quantum Cryptography Actually Is

Post-quantum cryptography, often shortened to PQC, is the name for cryptographic algorithms designed to run on ordinary classical computers but resist attacks from both classical and quantum computers. The name is slightly misleading: it does not mean cryptography that runs on quantum computers. It means cryptography that survives in a world where quantum computers exist. The algorithms are classical; they simply rely on mathematical problems that quantum computers are not known to solve efficiently.

That distinction matters, because there is a separate field called quantum cryptography, which uses quantum physics itself — for example, quantum key distribution — to secure communications. Quantum cryptography requires special hardware and is a different approach entirely. Post-quantum cryptography, by contrast, is software: new algorithms you can run on the devices you already own. That makes it far more practical for widespread deployment, and it is why standards bodies have focused on it.

The search for post-quantum algorithms has been a global, open effort. Researchers proposed dozens of candidates based on different kinds of mathematics, and those candidates have been attacked, tested, and refined in public for years. This open scrutiny is a feature, not a bug: the algorithms that survive are the ones that withstood years of attempts to break them. The result is a small set of standardized algorithms that the industry is now beginning to adopt, with more work continuing on backups and alternatives in case a chosen algorithm weakens.

If you want to go deeper into the formal definitions and the standardization process, the post-quantum cryptography overview is a good starting point, and the NIST post-quantum cryptography project page documents the official standardization effort, including the selected algorithms and the ongoing rounds for additional signatures.

The New Algorithms

Post-quantum algorithms fall into families based on the mathematical problem they rely on. The most important family is lattice-based cryptography, which builds security on the difficulty of finding short vectors in high-dimensional lattices. Lattices are geometric structures that are easy to describe but hard to search, and crucially, no efficient quantum algorithm is known for the relevant lattice problems. The first standardized post-quantum algorithms are lattice-based: ML-KEM, formerly known as Kyber, for key encapsulation, and ML-DSA, formerly Dilithium, for digital signatures. These are the work horses of the transition, and most early deployments use them.

A second family is hash-based signatures, which build digital signatures purely from hash functions. Hash-based signatures are well understood and conservative, because their security rests only on the hash function, but they come with trade-offs: signatures can be large, and some schemes are stateful, meaning the signer must carefully track which keys have been used. The standardized hash-based signature scheme, SLH-DSA (formerly SPHINCS+), is stateless and therefore easier to deploy safely, and it serves as a valuable backup in case lattice-based signatures ever weaken.

Other families include code-based cryptography, which relies on the difficulty of decoding random error-correcting codes, and multivariate and isogeny-based approaches. Code-based schemes have a long history and strong security arguments, but their public keys are very large, which limits where they can be used. Isogeny-based cryptography once looked promising but suffered a major break when a candidate was defeated by a classical attack, a reminder of why multiple families and continued scrutiny matter. The practical takeaway is that the standardized set is deliberately diverse: if one family fails, the others still stand.

It is also worth understanding what changes for implementers. Post-quantum keys and signatures are generally larger than RSA or ECC equivalents, and some operations are slower. This matters for constrained environments: a tiny sensor or a smart card may struggle with a large signature, and protocols that exchange keys frequently must budget for bigger messages. Hybrid approaches, which combine a classical algorithm with a post-quantum one, are popular during the transition because they preserve existing security guarantees while adding quantum resistance: an attacker would need to break both to succeed. If you are planning a migration, expect hybrids to feature heavily in the early years.

A person typing code on a laptop with a focus on cybersecurity and software development

Why the Transition Is Hard

If the new algorithms exist, why not simply switch everything tomorrow? Because cryptography is infrastructure, and infrastructure changes slowly and painfully. Every protocol that uses public-key cryptography — TLS for web traffic, SSH for server access, VPNs, email encryption, code signing, and the certificate system that vouches for websites — must be updated, tested, and rolled out. Each update must remain compatible with older systems during the transition, or large parts of the internet would break. Compatibility is not a nice-to-have; it is the reason migrations take years.

Embedded and long-lived devices make the problem harder. A server can be patched next week, but a pacemaker, a factory controller, or a satellite may run the same firmware for a decade. Some devices cannot be updated at all and must be replaced, which is expensive and slow. Organizations also face an inventory problem: most do not have a complete list of everywhere cryptography is used in their systems, from libraries and certificates to third-party services and legacy applications. You cannot migrate what you cannot find, and discovering the full inventory is often the longest part of the project.

There is also a performance and compatibility cost to manage. Larger keys and signatures mean bigger handshake messages, more bandwidth, and more processing on constrained devices. Protocols designed around small ECC signatures may need redesign rather than a simple algorithm swap. Testing must cover not just correctness but also failure modes: what happens when a peer does not support the new algorithm, when a certificate chain mixes old and new, or when a device runs out of memory mid-handshake? These are solvable problems, and they are being solved, but they explain why the transition is a multi-year program rather than a patch.

A detailed view of components on a computer motherboard, showcasing technology and circuitry

How to Prepare

Preparation starts with inventory, not with buying products. Find out where your organization uses public-key cryptography: which libraries, which protocols, which certificates, which vendors, and which data has a long secrecy lifetime. Prioritize the long-lived data, because that is what harvest-now-decrypt-later threatens first. For most organizations, the practical order is: understand the exposure, then protect the most sensitive long-lived data, then migrate systems in order of risk and ease.

Next, adopt crypto-agility as a design principle. Crypto-agility means your systems can swap algorithms without a rewrite: algorithms are configurable, key lengths are parameters, and upgrades do not require redesigning the whole application. If your software hard-codes RSA everywhere, every future transition will be painful. If it treats algorithms as pluggable, the post-quantum migration — and the one after it — becomes manageable. When buying new systems, ask vendors about their post-quantum roadmap and whether they support hybrid key exchange and the standardized algorithms. Vendor answers are a useful signal of how seriously they take the transition.

For most readers, the concrete steps are modest and sensible. Keep your software updated, because post-quantum support is arriving through normal updates to browsers, operating systems, and libraries. Enable hybrid post-quantum key exchange where your browser or VPN already offers it; several major browsers and cloud providers have already rolled it out for TLS. For data that must stay secret for decades, consider whether it is already protected by post-quantum or hybrid encryption in transit and at rest, and talk to your vendors about their timelines. You do not need to rip out working systems today, but you should have a plan, a timeline, and an owner for the migration inside your organization.

One more practical point: do not fall for marketing that promises “quantum-proof” everything overnight. Real post-quantum migration is incremental, standards-based, and boring in the best way. Be skeptical of products that claim quantum security without naming the standardized algorithms they use, and be equally skeptical of anyone who tells you the threat is either imminent or imaginary. The honest position is in between: the threat is real but not immediate, the solution exists but takes time to deploy, and the organizations that start now will finish comfortably while late movers scramble.

For readers following our broader security coverage, this topic sits alongside the hardware and infrastructure guides in the Advanced Cybersecurity & Privacy category, and you can always return to the TechBist homepage or browse the TechBist blog for more plain-language technology guides. If you are weighing hardware choices for systems that will run these new algorithms, our guide on how to choose hardware for edge AI covers the practical trade-offs of constrained devices, which matter just as much for post-quantum deployments.

A diverse group of professionals working together in a modern conference room with laptops

Frequently Asked Questions

Will quantum computers break all encryption?

No. Quantum computers threaten public-key cryptography — RSA, ECC, and Diffie-Hellman — because Shor’s algorithm solves the problems those systems rely on. Symmetric encryption like AES and hash functions are much less affected; doubling key sizes largely restores their security against known quantum attacks. The migration focuses on replacing public-key algorithms, not on redesigning all of cryptography.

When will a quantum computer actually break RSA?

Nobody knows for certain. Current quantum computers are far too small and error-prone, and credible estimates range from a decade to several decades before a machine capable of breaking real-world RSA keys exists. The urgency comes not from an imminent machine but from “harvest now, decrypt later”: data encrypted today could be decrypted in the future, so long-lived secrets need quantum-resistant protection now.

What are ML-KEM and ML-DSA?

ML-KEM and ML-DSA are the first standardized post-quantum algorithms, both based on lattice mathematics. ML-KEM (formerly Kyber) is used for key establishment: two parties agree on a shared secret over an open channel. ML-DSA (formerly Dilithium) is used for digital signatures: proving that a message or piece of software really came from its claimed author. Together they cover the two main jobs that RSA and ECC perform today.

Should I switch everything to post-quantum algorithms today?

For most people, no — not in a rush, and not all at once. The sensible path is to keep systems updated, enable hybrid post-quantum support where it is already available, inventory where public-key cryptography is used, and plan a staged migration that prioritizes long-lived sensitive data. Hybrid approaches, combining classical and post-quantum algorithms, are the recommended bridge during the transition.

Is post-quantum cryptography the same as quantum cryptography?

No. Post-quantum cryptography is classical software designed to resist quantum attacks; it runs on ordinary computers. Quantum cryptography, such as quantum key distribution, uses quantum physics and special hardware to secure communications. Post-quantum cryptography is the practical, widely deployable approach, while quantum cryptography remains a niche technology for specific high-security links.

1 thought on “Post-Quantum Cryptography Explained”

Leave a Comment