Quantum-Safe Cryptography Explained: The Quantum Threat and How to Prepare

Quantum-safe cryptography explained simply is this: encryption designed to stay secure even when powerful quantum computers arrive. The central question is whether the encryption protecting the internet today will survive that day, and the short answer is that the public-key cryptography behind most online security is vulnerable in theory, new standards already exist to replace it, and migration should start now rather than later.

Almost everything we do online depends on encryption that ordinary computers cannot break in any practical time. Quantum computers work on different principles, and some of the mathematical problems protecting our data today may be easy for them. This guide explains how the threat works, what quantum-safe means, which standards have been finalised, and what to do to prepare.

Key takeaways

  • Public-key cryptography such as RSA and elliptic-curve cryptography is the part most threatened by quantum computers.
  • Symmetric encryption and hash functions are far less affected, and longer keys keep them secure.
  • NIST finalised three post-quantum standards in August 2024: ML-KEM, ML-DSA and SLH-DSA.
  • Data encrypted today could be stored and decrypted later, so long-lived secrets come first.
  • Migration is gradual, built on crypto-agility, hybrid systems and careful inventory, not a single overnight switch.

Why today’s encryption is at risk

Encryption protects the data we send and store. When you log in to a bank, send a message or buy something online, encryption scrambles the data so that only the intended recipient can read it. Without it, passwords, messages, medical records and financial details would travel in plain sight.

Modern encryption has two main parts: symmetric encryption, which uses one shared key, and public-key cryptography, which uses a public and a private key to solve the problem of sharing a secret with a stranger.

Public-key cryptography underpins secure web browsing, email, messaging apps, virtual private networks and software updates. When your browser shows a padlock, it has been used to agree a secret key and to check the identity of the site you are visiting.

That foundation rests on mathematics. RSA depends on the difficulty of factoring very large numbers, while elliptic-curve cryptography depends on the difficulty of the discrete logarithm problem. Ordinary computers find both far too hard to solve in any useful time, which is why the systems are trusted.

How quantum computers change the maths

A quantum computer uses quantum bits, or qubits, which can exist in combinations of states that ordinary bits cannot. This allows certain calculations to be performed in a fundamentally different way, and for a small number of mathematical problems the difference matters enormously.

In 1994, mathematician Peter Shor published an algorithm that could factor large numbers and solve discrete logarithms efficiently on a sufficiently powerful quantum computer. Shor’s algorithm is the heart of the quantum threat: if a machine large and stable enough to run it were built, RSA and elliptic-curve cryptography would no longer protect the data they guard today.

Symmetric encryption faces a smaller threat. Grover’s algorithm can speed up the search for a symmetric key, but only by a square-root factor, which effectively halves the strength of a key. Doubling the key length restores the lost security, so a 256-bit key remains strong even against a quantum attacker.

What quantum-safe cryptography means

Quantum-safe cryptography, also called post-quantum cryptography, is encryption built from mathematical problems believed to be hard for both ordinary and quantum computers. The term does not mean the cryptography runs on a quantum computer, only that it is designed to resist attack by one.

The leading approaches rely on problems such as finding short vectors in high-dimensional lattices, decoding certain error-correcting codes, or solving systems of multivariate equations. These problems have been studied for years, and no efficient quantum algorithm is known for them. That does not prove they can never be broken, but it is the best basis available for new standards.

Quantum-safe cryptography is different from quantum key distribution, which uses quantum physics to share keys but needs special hardware and dedicated links. Post-quantum cryptography runs on ordinary computers and networks, which makes it the practical route for protecting the internet at scale.

A brass padlock and key on a dark desk lit by a green glow
Encryption is only as strong as the maths behind it, and quantum-safe cryptography rebuilds that maths before quantum computers can break it.

The NIST post-quantum standards

The United States National Institute of Standards and Technology, known as NIST, has led the global effort to standardise post-quantum cryptography. It invited proposals from cryptographers worldwide in 2016, and after several rounds of public evaluation it selected a small set of algorithms for standardisation.

In August 2024, NIST finalised the first three post-quantum standards. ML-KEM, published as FIPS 203, is a key encapsulation mechanism used to agree shared secret keys securely, based on the CRYSTALS-Kyber algorithm. It is intended as the general-purpose replacement for RSA and elliptic-curve key exchange.

ML-DSA, published as FIPS 204, is a digital signature scheme based on the CRYSTALS-Dilithium algorithm. Digital signatures prove who sent a message or a piece of software and that it has not been altered, so this standard protects the authenticity of signed documents and software updates.

SLH-DSA, published as FIPS 205, is a second digital signature scheme based on the SPHINCS+ algorithm. It relies on hash functions rather than lattices, which gives the standards portfolio diversity, so a hash-based alternative would already exist if a weakness were ever found in lattice-based cryptography.

Governments and regulators are aligning around these standards. The United States has directed federal agencies to prepare for migration, while other countries are publishing their own guidance. For a wider view of how governments are writing rules for new technology, see our guide to AI regulation.

Comparing the three standards

Each standard has a different job, and most systems will need more than one. ML-KEM handles the confidential exchange of keys, while ML-DSA and SLH-DSA handle signatures and authenticity. Choosing between the two signature schemes is a trade-off between performance, key size and the diversity of the underlying mathematics.

Standard Purpose Based on Main strength
ML-KEM (FIPS 203) Key exchange CRYSTALS-Kyber Fast general-purpose replacement
ML-DSA (FIPS 204) Digital signatures CRYSTALS-Dilithium Efficient signatures at scale
SLH-DSA (FIPS 205) Digital signatures SPHINCS+ Hash-based, independent of lattices

Harvest now, decrypt later

One reason migration cannot wait is a tactic known as harvest now, decrypt later. An attacker can record encrypted traffic today, store it, and decrypt it years later once a sufficiently powerful quantum computer exists. The data is already captured, so the break does not need to happen now.

This matters most for information that stays sensitive for a long time: state secrets, trade secrets, medical records, legal documents and personal data that must remain private for decades. A message that stops mattering in a week is a low priority, while a record that must stay secret for twenty years is a high one.

The same logic applies to stored data, not only to traffic in transit: encrypted backups, archives and databases can be copied today and attacked later. Organisations should therefore think about how long their data must stay secret, and protect the longest-lived secrets first.

How migration works in practice

Migration is a long project, not a single event. The internet runs on countless systems, from web servers and browsers to payment terminals, industrial controls and embedded devices. Each uses cryptography in its own way, and each needs to be found, tested and updated.

The first step is an inventory, since an organisation cannot protect cryptography it does not know it has. It should cover software libraries, certificates, virtual private networks, messaging systems, file encryption, code signing and the cryptography built into hardware. Third-party suppliers and cloud services belong on the list too, since their cryptography protects the organisation’s data as well.

Crypto-agility is the design principle that makes migration manageable: a crypto-agile system can swap one algorithm for another without rebuilding the whole product. Systems built this way can move to post-quantum algorithms as standards settle, and move again if a future algorithm is found to be weak.

Hybrid cryptography is the bridge used during the transition. A hybrid system runs a classical algorithm and a post-quantum algorithm side by side, so the connection stays secure even if one of the two is broken. Major browsers and messaging services have already begun deploying hybrid key exchange, letting the new cryptography be tested at scale while the old one provides a safety net.

Prioritisation matters because no organisation can migrate everything at once. The sensible order is long-lived secrets first, then systems handling sensitive personal or financial data, then widely used services such as web servers and virtual private networks, and finally devices with the longest replacement cycles.

What this means for individuals

For most people, the practical steps are modest. Keep software and operating systems updated, since browsers, messaging apps and operating systems will add post-quantum protection through ordinary updates. No special software is needed, and no action requires understanding the underlying mathematics.

Good security habits still matter more than quantum computers do today. Strong, unique passwords and multi-factor authentication protect accounts against the attacks that are actually happening now. Our guide to password security explains how to build that foundation properly.

People with long-lived secrets should think ahead. Journalists, lawyers, researchers and anyone handling information that must stay private for many years should use services that take post-quantum migration seriously and ask providers what their plans are. For everyday browsing and messaging, following updates from trusted providers is enough.

Migration checklist

  • Inventory every place your organisation uses cryptography, including libraries, certificates, VPNs and embedded devices.
  • Classify data by how long it must stay secret, and protect the longest-lived first.
  • Ask suppliers and cloud providers for their post-quantum migration plans and timelines.
  • Build crypto-agility into new systems so algorithms can be swapped without a rebuild.
  • Use hybrid cryptography where available, combining classical and post-quantum algorithms.
  • Plan for larger keys and signatures, which may affect storage, bandwidth and older devices.
  • Test post-quantum algorithms in non-critical systems before rolling them out widely.
  • Train staff on the basics so the migration is understood as a security project, not only a technical one.
  • Review the plan at least once a year, since standards and guidance still evolve.

Frequently asked questions

What is quantum-safe cryptography?

It is encryption based on mathematical problems believed to be hard for both ordinary and quantum computers. It runs on normal hardware and replaces the public-key cryptography that quantum computers could one day break.

When will quantum computers break today’s encryption?

Nobody can give a reliable date, because it depends on engineering progress that is hard to predict. That uncertainty is itself a reason to migrate early.

What are the NIST post-quantum standards?

NIST finalised three standards in August 2024: ML-KEM (FIPS 203) for key exchange, ML-DSA (FIPS 204) for digital signatures, and SLH-DSA (FIPS 205) as a hash-based signature alternative. Further standards are still in development.

Is my online banking at risk from quantum computers today?

No, because no quantum computer yet exists that can break current encryption. The risk is future decryption of data captured now, which is why banks are preparing migration plans rather than waiting.

Do I need to replace all my passwords?

No. Passwords are not the part of the system most threatened by quantum computing. Strong, unique passwords and multi-factor authentication remain the right defence for individual accounts.

Where can I follow official updates?

The official NIST post-quantum cryptography project publishes the standards, guidance and news about further standardisation.

The bottom line

Quantum-safe cryptography explained in one line is this: the maths protecting the internet today will not survive a sufficiently powerful quantum computer, the replacement standards already exist, and the sensible response is a planned, prioritised migration rather than panic. Organisations that inventory their cryptography, protect long-lived secrets first and build crypto-agile systems will be ready.

This article is general information about cryptography and quantum computing, not professional security advice. Cryptographic standards and guidance change over time, so consult a qualified security professional before making decisions based on this guide.

Latest articles

Scroll to Top