No, AI Did Not Break RSA: How Encryption Actually Works
Lately I keep reading that “Anthropic’s AI broke RSA”. I’ve seen it on LinkedIn, in YouTube thumbnails with a shocked face and a red arrow, and in comments from people who are absolutely certain that the internet is now broken and your bank account is about to be drained by a chatbot.
Let me be direct: that is not what happened. What actually happened is much more boring. Anthropic published research in which their model found weaknesses in a post-quantum signature scheme (HAWK) and a better attack on a reduced-round version of AES, meaning a deliberately weakened toy version that nobody uses in production. Anthropic itself said that none of this affects real systems. Separately, an Anthropic engineer reportedly used Claude to help port an existing factoring program to GPUs and factor RSA-896, a public challenge number. That is a nice piece of engineering. It is not “breaking RSA”, in the same way that a faster bicycle is not a teleporter.
But a lot of self-proclaimed “tech visionaries” read the headline, skipped the article, and started shouting. Some of them were explaining blockchain to their dentist in 2021 and are now “AI thought leaders”. It’s fine not to know how cryptography works, most people don’t. What bothers me is announcing the end of internet security with total confidence without having checked what was actually published.
So instead of just complaining, let me explain how encryption actually works, why breaking RSA would be such an enormous deal, and why it’s very unlikely that this is what happened, or that it will happen soon. By the end of this article you’ll be able to judge the next headline yourself.
How encryption is actually built
Here is the core idea that most people miss. Modern encryption is not a secret trick. It’s not “we scrambled the data in a clever way and hope nobody figures it out”. That approach is called security through obscurity and it has been considered garbage since the 1880s (Kerckhoffs’s principle: the system must stay secure even if the enemy knows everything about it except the key).
Instead, every modern algorithm is completely public. Anyone can read how RSA or AES work, the specifications are free online, the code is open source. The security comes from something else: a mathematical problem that is easy in one direction and extremely hard in the other.
The recipe goes more or less like this:
- Pick a problem that is easy to compute forward but hard to reverse.
- Find the fastest possible way to reverse it. Not just your fastest way: the fastest way that the entire world of mathematicians, over decades, has been able to come up with.
- Make the problem big enough that even this fastest way takes longer than the age of the universe.
That’s it. There is no hidden backdoor, and any clever “shortcut” would have to be one that thousands of the smartest people on the planet missed, because finding shortcuts is exactly what they have been paid to do for 50 years. If you want to break it, a better computer is not enough, you need better mathematics.
I want to be honest about one detail, because it matters: for most of these problems we do not have a formal proof that the best known algorithm is the best possible one. What we have is the next best thing: decades of brutal public scrutiny, where every cryptographer in the world would become famous overnight by finding a faster method, and nobody did. So a break is not impossible, but it would not be a LinkedIn post. It would be the mathematical discovery of the century.
RSA: multiplying is easy, un-multiplying is not
RSA is based on a problem you studied in elementary school: factoring.
Take two prime numbers, say 61 and 53. Multiplying them is trivial: 61 × 53 = 3233. Now I give you 3233 and ask you: which two primes did I multiply? You will have to try dividing by 2, 3, 5, 7, 11… until you hit 53. With small numbers it’s annoying but doable.
Now do the same with two primes that are each about 300 digits long. Their product is a number of 617 digits, called an RSA-2048 key. Multiplying them takes your laptop microseconds. Going back, finding the two original primes, is a completely different story.
In RSA the big number is your public key, and you can give it to everyone. The two primes are essentially your private key. Anyone who can factor the public number can compute your private key and read your messages. So the entire security of RSA boils down to one question: how fast can we factor big numbers?
The answer is: the best known classical algorithm is the General Number Field Sieve (GNFS). It is much smarter than trying divisions one by one, but it still grows terribly fast with the size of the number. Here are some real numbers:
- In 2020, researchers factored RSA-250 (829 bits). It took a big cluster of computers several months. On a single processor core it would have taken about 2,700 years.
- RSA-896, the one people are now talking about, is only a little bigger. Factoring it on a lot of GPUs is impressive engineering, but it’s the same old algorithm on faster hardware.
- RSA-2048, what your browser actually uses, is a different league: roughly 100 billion times harder than RSA-250.
To get a feeling for “100 billion times harder”: if factoring RSA-250 had taken one second, RSA-2048 would take about 3,000 years. And RSA-250 didn’t take one second, it took those 2,700 core-years. Even with a million processor cores working together non-stop, RSA-2048 would take hundreds of millions of years. Your bank does not care.
That is the point I’m trying to make. Going from RSA-896 to RSA-2048 is not a matter of “a bit more effort” or “next model version”. It is a wall. The only way through that wall is a completely new factoring algorithm, and an AI writing faster GPU code for the old algorithm is not that.
What P and NP are, and why they matter here
Every time somebody talks about breaking encryption, sooner or later the words “P = NP” come out. Let’s see what they actually mean, because it’s one of the most beautiful open questions in mathematics (and there is literally a one million dollar prize for solving it).
Problems in computer science are grouped by how hard they are. Two of the most important groups are:
- P (polynomial time): problems that can be solved quickly. “Quickly” here has a precise meaning: the time needed grows like a polynomial of the input size (n^2, n^3, …), not explosively. Sorting a list, multiplying two numbers, finding the shortest path on a map: all in P.
- NP (nondeterministic polynomial time): problems where, if someone gives you a candidate solution, you can check it quickly. Solving it may be very hard, but verifying is easy.
Factoring is the perfect example of an NP problem. Finding the two primes of a 617-digit number is a nightmare. But if I hand you two primes and say “these are the factors”, you just multiply them and compare. It takes a fraction of a second.
Sudoku is another nice example. Solving a huge sudoku is hard, but checking that a filled-in grid is correct is trivial: you just look at every row, column and box.
Now, every problem in P is also in NP: if you can solve something quickly, you can obviously check it quickly too. The million dollar question is the reverse: is every problem that is easy to check also easy to solve? That is the question P = NP.
Almost every computer scientist believes the answer is no, P ≠ NP. It feels obvious: checking a solution should be easier than finding it. Recognizing a great song is easier than writing one. But in 50 years nobody has been able to prove it.
Inside NP there is also a special club called NP-complete problems: the “hardest” problems in NP. They are connected in a magical way: if you find a fast algorithm for any one of them, you get a fast algorithm for all of NP. That would mean P = NP.
And here is the connection to encryption: if P = NP, then factoring is in P, and RSA is dead. Not only RSA: basically every form of public-key cryptography would collapse, because they all rely on problems that are easy to check but hard to solve.
I need to be precise here, because this is where many people (me included, the first time I studied it) get it slightly wrong. The arrow goes in one direction: P = NP would break RSA. But a fast factoring algorithm would not automatically prove P = NP, because factoring is not believed to be NP-complete. It sits in a strange middle ground: harder than P (we think), but probably not as hard as the hardest problems in NP.
Does that make a fast factoring algorithm plausible? Possible in principle, since nobody has proven it can’t exist, but very unlikely. Factoring has been studied since the ancient Greeks. Gauss worked on it. The best mathematicians of the last 50 years have tried to make it fast, with fame, money and Turing Awards waiting for them. A classical polynomial-time factoring algorithm would be one of the biggest results in the history of mathematics. If it ever comes, from a human or from an AI, it will come as a paper that the whole field spends months checking, not as a rumor.
The real threat: quantum computers
There is however one thing that we know can break RSA, and it is not a language model. It is a quantum computer.
In 1994 Peter Shor published an algorithm that factors numbers in polynomial time on a quantum computer. This is not a guess, it’s a proven result. Shor’s algorithm uses the strange properties of quantum mechanics (superposition and interference) to find the hidden period of a mathematical function, and from that period the factors pop out. Quantum computers don’t change the P vs NP question. They are simply a different kind of machine, with a different set of problems they find easy, and factoring happens to be one of them.
So why is RSA still alive? Because building a quantum computer big enough is really hard. Quantum bits are extremely fragile: any tiny vibration, heat or electromagnetic noise destroys their state. To run Shor on RSA-2048 you need thousands of error-corrected logical qubits, and each of them is built from many noisy physical ones. Estimates from Google in 2025 say you’d need something under one million physical qubits running for about a week. Today’s best machines have on the order of a thousand, and they are far too noisy.
So the quantum threat is real but not here yet. The problem is that encrypted traffic can be recorded today and decrypted in 15 years (“harvest now, decrypt later”). That’s why in 2024 NIST standardized new post-quantum algorithms (ML-KEM, ML-DSA and SLH-DSA), based on problems like lattices where no quantum shortcut is known. Your browser is very likely already using a hybrid post-quantum key exchange while you read this page.
And by the way: the HAWK scheme that Anthropic’s model found weaknesses in is exactly one of these post-quantum candidates, still under evaluation. Finding problems in candidates before they get deployed is how this process is supposed to work. That’s good news, not an apocalypse.
AES: the golden standard
Now let’s talk about the algorithm that actually encrypts almost all your data: AES.
RSA is slow, so it’s only used for the beginning of a connection, to agree on a key or to sign things. Once both sides share a secret key, everything else (your web pages, your WhatsApp messages, your disk with BitLocker or LUKS, your VPN tunnel) is encrypted with a symmetric cipher, and that cipher is almost always AES.
AES was born from an open competition organized by NIST between 1997 and 2000. Cryptographers from all over the world submitted designs and then spent three years trying to destroy each other’s algorithms. The winner was Rijndael, designed by two Belgian cryptographers, Joan Daemen and Vincent Rijmen. It became the standard in 2001, and today it’s used by everyone, from your phone to the US government for TOP SECRET information. Modern CPUs even have dedicated hardware instructions (AES-NI) to run it at gigabytes per second.
AES is not based on factoring or any number theory problem. It works by repeatedly mixing, substituting and shuffling the bits of the data together with the key, over 10 to 14 “rounds”. The design is such that after a few rounds every output bit depends on every input bit and every key bit in a completely chaotic way.
The result is that, after 25 years of attacks, the best way to break AES is still essentially to try every key. The best known theoretical attack on full AES-128 (the biclique attack) reduces the work from 2^128 to about 2^126. Congratulations: it’s now only 4 times weaker than it should be. Nobody can use that.
How big is 2^128? It’s about 340 undecillion, 3.4 × 10^38. Imagine a computer that tests one billion billion keys per second (that is 10^18, roughly an entire top supercomputer doing nothing else). Trying all keys would take about 10 trillion years. That is around 800 times the age of the universe. And that’s AES-128, the small version. AES-256 squares that number.
This is also why the “reduced-round AES” result doesn’t affect you. Cryptographers regularly attack weakened versions with fewer rounds, exactly to measure how much safety margin the full version has. Breaking 7 rounds when the real thing uses 10 or 14 is like a burglar bragging that he can open the door when you remove half the locks.
And quantum against AES?
Here is the beautiful part. Quantum computers do not break AES. The best quantum attack is Grover’s algorithm, which gives a “square root” speedup for searching: instead of 2^128 tries you need around 2^64 quantum operations. That sounds scary, but it just means that AES-256 under a quantum attack is as strong as AES-128 is today, which, as we just saw, is 800 universes of computation. And in practice Grover is even worse than that on paper, because it can’t be parallelized efficiently.
So the fix for the quantum threat on AES is trivial: use 256-bit keys. Done. Most systems already do.
So, can AI break encryption?
AI can be a fantastic tool for cryptographers. It can read thousands of papers, find bugs in implementations, spot weaknesses in new and less-studied schemes, and write faster code for old algorithms. That’s real and useful work, and it’s exactly what was reported.
Could it one day go further and find a genuinely new factoring algorithm? I can’t rule it out, and nobody honestly can, because we have no proof that factoring is hard. To be fair, AI is getting seriously good at mathematics. Earlier this year an Anthropic model pushed forward a result about the zeros of the Riemann zeta function, something mathematicians had been improving very slowly for decades, and the proof was verified by a computer line by line. That’s real research, not autocomplete. But improving a bound is one thing, and finding the shortcut that every mathematician has missed for fifty years is another. Today nobody, human or machine, is anywhere near it.
In the meantime, the realistic ways RSA falls are much less glamorous: quantum computers in the future, and today bugs in implementations, bad random number generators and old, short keys. Ironically, finding those bugs is where AI is actually getting good.
If someone really breaks RSA-2048 with a classical computer, you probably won’t find out from a LinkedIn profile with “Visionary | Disruptor | AI Evangelist” in the bio. You’ll find out because every bank, every government and every cryptographer on the planet will react at the same time.
Until then, relax. Your data is fine. Probably the weakest link is still your password being Password123!. But that’s another article.