Ethics & safety

Can AI break encryption? What it means for your data

AI is now being used to probe the maths behind online security. How encryption works, what post-quantum cryptography is, and what you should actually do.

Cortexpost Editorial TeamArtificial intelligence 6 min read
A person paying a bill on a laptop in a cosy home office at night, with an open vault door in the corner

Can AI break encryption? The question has moved from science fiction to serious research. AI labs and security researchers now use advanced models to hunt for weak spots in the mathematics that keeps bank logins, messages and medical records private, and every reported finding sets off a wave of worried headlines.

This guide explains, in plain terms, how modern encryption works, why AI is suddenly part of the conversation, what post-quantum cryptography is, and why a finding on paper is very different from a real-world break. It ends with a short list of things worth doing and things you can safely ignore.

How does encryption keep your data safe?

Most of the security you use every day rests on maths problems that are easy in one direction and very hard in the other. Multiplying two huge prime numbers takes a computer a moment. Starting from the result and finding the two primes again is, with every method known, so slow that it is out of reach. RSA, one of the oldest public-key systems, is built on exactly that gap.

Elliptic-curve cryptography uses a different hard problem but follows the same idea. Public-key methods like these let two strangers agree on a secret key over the open internet. That key then switches on fast symmetric encryption such as AES, which scrambles the actual data you send.

Why is AI suddenly part of the encryption debate?

Breaking a cipher almost never means guessing a password. It means finding a cleverer algorithm: a shortcut through the hard maths problem. That is research work, the kind mathematicians do with paper, proofs and a lot of trial and error.

Large AI models have become good at helping with exactly this sort of work. They can suggest approaches, check steps and run experiments at a pace no single researcher can match. AI labs now test their own models on cryptanalysis, partly to measure how capable and risky they are, and partly to find weaknesses before criminals do. When such a test turns up something new, the lab usually tells government agencies and standards bodies first.

A finding on paper that needs galactic computing power changes the research agenda, not the safety of your bank account.

What is post-quantum cryptography?

For years the main long-term threat to RSA and elliptic curves has been the quantum computer. A large, reliable quantum machine could run Shor’s algorithm, which solves both underlying problems efficiently. No such machine exists yet, but data stolen today could be stored and decrypted later, a risk often called ‘harvest now, decrypt later’.

To get ahead of that, the US National Institute of Standards and Technology (NIST) finalised its first post-quantum standards in 2024: ML-KEM for agreeing keys and ML-DSA and SLH-DSA for digital signatures. The first two rely on ‘structured lattices’, grids in many dimensions where finding a particular short path is believed to be very hard even for a quantum computer. Browsers, messaging apps and cloud providers have been rolling these methods out, often combined with the older ones.

Is a theoretical weakness the same as a broken system?

No, and this is the point most headlines skip. Cryptographers call an attack ‘theoretical’ when it is faster than the best known method on paper but still needs absurd amounts of computing power. An attack that cuts the effort from a trillion trillion years to a billion trillion years is an important result for researchers and changes nothing for your bank account.

Researchers judge a reported attack by a few questions:

  • Does it work on the key sizes that real systems use, or only on unusually large or small ones?
  • How much computing power and memory would it need, and on what kind of machine?
  • Does it need a large quantum computer that does not exist?
  • Has it been checked by independent experts, not only by the people who found it?

Why do experts still say: keep moving to post-quantum?

It can sound strange: a weakness is found in the new methods, and the advice is to keep adopting them. The reason is comparison. The older RSA and elliptic-curve systems are known to fall to a large quantum computer with Shor’s algorithm. A theoretical dent in lattice methods that still needs galactic resources leaves them far stronger than what they replace.

Security people also plan for surprises. Many deployments use a hybrid design that combines a classical and a post-quantum method, so an attacker must break both. Standards bodies keep backup algorithms based on different maths, such as the hash-based SLH-DSA, and the idea of ‘crypto agility’, being able to swap one algorithm for another quickly, is now a design goal in its own right.

What should you actually do to protect your data?

For individuals, the practical advice barely changes, because the realistic risks lie elsewhere. Criminals rarely break maths. They phish passwords, reuse leaked ones and exploit devices that have not been updated, and AI tools are making those everyday attacks cheaper.

A short checklist covers most of what matters:

  • Install software and app updates promptly: that is how new encryption methods reach your devices.
  • Use a password manager and a different password for every account.
  • Turn on passkeys or two-step verification wherever they are offered.
  • Be extra wary of convincing messages, calls or voice notes asking for codes or payments.
  • For businesses: list where you use public-key encryption and ask your suppliers about their post-quantum plans.

How can you read the next encryption headline calmly?

Look for who confirmed the result. Statements from independent cryptographers, standards bodies such as NIST or national security agencies such as the UK’s National Cyber Security Centre carry more weight than social media rumours or a single company post.

Then look for the words that change the meaning: ‘theoretical’, ‘for very large keys’, ‘requires a quantum computer’, ‘no practical impact’. If they are there, the story is about research progress, not about your data being exposed. If a widely used system were really broken, you would hear about it through urgent security updates and official guidance, not only through headlines.

Frequently asked questions

Can AI crack my passwords?

+

AI can help attackers guess weak or reused passwords faster, but it does not break the encryption that protects stored or sent data. Long, unique passwords in a password manager plus two-step verification or passkeys remain the best defence.

Has AI broken RSA encryption?

+

There is no public evidence that RSA at the key sizes used in practice has been broken by AI or by any other method. The main known long-term threat to RSA is a large quantum computer running Shor’s algorithm, which does not exist yet.

What is ML-KEM?

+

ML-KEM is a post-quantum method for two parties to agree on a secret key, standardised by NIST. It is based on structured lattices and is already used in some browsers, messaging apps and cloud services, often together with an older method.

Is post-quantum cryptography still safe?

+

Cryptographers still regard the NIST post-quantum standards as strong. Theoretical attacks that need enormous resources are treated as signals for more research, not as reasons to stop using them, and hybrid designs add another layer of safety.

Do I need to do anything about quantum computers today?

+

As an individual, keeping your devices and apps updated is enough: post-quantum protection arrives through updates. Organisations that hold long-lived sensitive data should start planning their move now.

Why do AI companies test their models on cryptography?

+

To understand what their models can do and how they could be misused. Finding weaknesses in a controlled way and reporting them to authorities and standards bodies lets defenders react before attackers find the same thing.

AI is turning into a powerful research tool for cryptography, for defenders and attackers alike. That makes headlines louder, but the sensible response stays the same: keep systems updated, keep the move to post-quantum methods going, and spend your own effort on the basics that stop everyday attacks.

How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.

Written by

Cortexpost Editorial Team

Artificial intelligence

Our writers work with AI tools every day and explain them plainly, without hype or doom.

More Stories

View all →