
Can AI break the codes that keep the internet safe? That question has been all over the news this week.
Online banking, messaging apps and email all rely on encryption. And encryption rests on maths problems that are meant to be practically impossible to solve.
Can AI Break Encryption? What Has Been Announced
This week, Anthropic said its AI models had advanced ways to approach the maths behind some next-generation encryption. The models are not yet public. The company says it shared the findings with outside experts and the US government.
The announcement followed weeks of rumours among researchers. Some feared that AI had already broken RSA, one of the most widely used encryption systems.
- The result is mostly theoretical. Anthropic says its main finding is a method that "in theory" solves some of the maths problems behind two new US government-backed standards. It also says the method cannot be turned into a practical threat.
- Experts are calm but cautious. A new group of 21 leading cryptographers, called the Cryptography Incident Review Group, said the work "falls far short" of breaking those standards.
- Agencies want faster action. The US National Security Agency urged people running national security systems to "accelerate the transition" to the new encryption. Germany's cyber agency BSI said it "cannot be ruled out" that AI could weaken current encryption.
What Is Encryption? A Simple Example
Encryption scrambles a message so that only the right person can read it. The oldest version is a shift cipher, where every letter moves along the alphabet by a fixed amount.
Example. Shift every letter 3 places forward. M becomes P, A becomes D, T becomes W, H becomes K and S becomes V. So MATHS turns into PDWKV.
Anyone who knows the shift of 3 can undo it. That is the weakness: with only 25 possible shifts, a person could try them all in minutes.
Modern encryption uses the same idea with a vastly bigger "key". The key is a number, and the maths makes it very hard to find without permission.
How RSA Encryption Works: A Worked Example
RSA is built from two large prime numbers. Here we use tiny ones so that you can check every step. If you need a refresher, see primes, HCF and LCM.
- Pick two primes. Take p = 61 and q = 53.
- Multiply them. n = 61 × 53 = 3,233. This number is public.
- Work out (p − 1)(q − 1). That is 60 × 52 = 3,120. This stays secret.
- Choose a public number e. Take e = 17.
- Find the private number d. It must satisfy 17 × d = 1 more than a multiple of 3,120. The answer is d = 2,753, because 17 × 2,753 = 46,801 = 15 × 3,120 + 1.
Now we can lock and unlock a message. The "message" is the number 65. The calculations use modular arithmetic, which means we keep only the remainder after dividing by 3,233.
| Step | Calculation | Result |
|---|---|---|
| Lock (public key) | 6517 mod 3,233 | 2,790 |
| Unlock (private key) | 2,7902,753 mod 3,233 | 65 |
We got our original 65 back. Anyone can lock a message with 3,233 and 17. Only the person who knows d = 2,753 can unlock it.
To find d, you need 3,120. To find 3,120, you need to know that 3,233 = 61 × 53. You can practise finding inverses like d with the Euclidean algorithm.
Why Breaking RSA Is Hard: Factoring Large Numbers
Look at what an attacker sees: only 3,233 and 17. To break the lock they must split 3,233 into two primes. You can try this with the prime factor form page.
Example. The square root of 3,233 is about 56.9. So you only need to test primes up to 53, which is 16 primes in total. The last one, 53, divides 3,233 exactly, and 3,233 ÷ 53 = 61.
That took 16 tries, which is nothing. Now imagine a number with 600 digits. Its square root has about 300 digits, and no computer can try that many numbers.
Cleverer methods than trial division exist. But for properly sized keys, none is fast enough for today's computers. You can read about large numbers in standard form and see how fast powers grow in powers and roots.
What Is Post-Quantum Encryption?
Quantum computers use the strange behaviour of tiny particles. In theory, a big enough one could solve some problems far faster than today's machines. That includes problems that keep RSA safe.
Today they are still largely experimental. Experts do not expect them to be in widespread use before 2035 at the earliest. Even so, governments and companies began switching to quantum-resistant encryption several years ago.
This new generation is called post-quantum encryption. Many of its designs use lattices, which are regular grids of points that stretch across hundreds of dimensions.
Example. On a flat 2D grid, finding the grid point closest to any spot is easy. You just round the coordinates. In a grid with hundreds of dimensions, the same task becomes extremely hard, and that is the problem these codes rely on.
The new AI result is about this kind of maths. It is a reminder that the hard problems we trust are only "hard" until someone finds a shortcut.
What the Experts Say About AI and Encryption
Views differ on how worried we should be, and it helps to read them side by side.
- "Poses no such threat." Prof Toby Murray of the University of Melbourne said the result has no immediate implications for online security.
- Quantum is the missing piece. Prof Scott Aaronson of the University of Texas at Austin said that using the weaknesses would need a quantum computer that does not exist yet. Some expect one within a few years, he added.
- Long-term caution. Aaronson also said it "would be a miracle" if all of today's cryptography survived AI "unscathed".
- Internal warnings. OpenAI's chief research officer Mark Chen has reportedly told researchers to stop using its models to attack encryption, warning that a major breakthrough could "melt the internet".
Put together, the message is simple. Nothing is broken today, but nobody should be complacent.
How to Prepare: Quantum-Resistant Encryption
Switching encryption takes years, which is why experts want to start early. Jeffrey Hoffstein, a mathematics professor at Brown University and a pioneer of the new systems, says he has struggled to convince banks to move. He described the response as "a big yawn".
Another idea is cryptographic agility. Professor Yevgeniy Dodis of New York University favours using several types of encryption at once, so that any one can be replaced quickly "if something happens".
Example. Think of a door with three different locks, each made by a different company. A thief who finds a flaw in one lock still cannot get in. And if one lock is found to be weak, you change just that lock.
What the Encryption News Means for Students
This story shows why number theory is no longer just "pure" maths. Primes, remainders and powers protect real money and real messages.
It also connects to our earlier stories on AI and maths. Read how AI is changing proofs in AI in mathematics, and how the biggest prime-number puzzle is explained in the Riemann hypothesis guide.
- Learn the basics. Practise primes, factors and powers and logarithms until they feel easy.
- Try the RSA example by hand. Lock 42 with the same keys (3,233 and 17) and check your answer with a calculator.
- Explore number theory. Start with the number theory topics and the step-by-step solver.
Frequently asked questions
Can AI break encryption today?
Not the encryption that protects your banking and messages. Experts who reviewed the latest result said it falls far short of breaking the new standards. Researchers still take the risk seriously and are preparing now.
What is RSA encryption?
RSA is a widely used system that locks data with a big number made by multiplying two large primes. Multiplying the primes is easy. Finding them again from the product is extremely hard.
What is post-quantum encryption?
It is a new kind of encryption built on maths problems that even a powerful quantum computer is not expected to solve quickly. Governments and companies have started to switch to it.
Why do quantum computers matter for security?
In theory, a large quantum computer could solve some maths problems much faster than today's machines. Those include the problems that keep current encryption safe. Such computers are still mostly experimental.
What is cryptographic agility?
It means designing systems so one encryption method can be swapped for another quickly. It also means using several methods at once. If one is weakened, the others still protect the data.