[{"data":1,"prerenderedAt":345},["ShallowReactive",2],{"blog-post-/blogs/did-ai-break-encryption":3},{"id":4,"title":5,"body":6,"description":326,"extension":327,"meta":328,"navigation":338,"ogImage":330,"path":341,"seo":342,"stem":343,"__hash__":344},"en/blogs/en/46.did-ai-break-encryption.md","Did AI Break Encryption?",{"type":7,"value":8,"toc":317},"minimal",[9,13,16,19,24,27,30,41,50,53,56,65,68,74,89,95,101,105,114,117,126,132,159,163,178,199,205,211,226,234,243,252,256,265,271,274,277,286,289,292,296,305,314],[10,11,12],"p",{},"Last weekend, posts all over X said an AI company had broken RSA, one of the most widely used encryption algorithms on the internet. Nobody has produced any evidence for it. On December 2 the U.S. National Security Agency (NSA) issued an advisory telling the people who run national security systems to replace their old encryption algorithms faster. The reason it gave is that AI companies had disclosed discoveries to the U.S. government that affect \"some cryptographic systems currently in use.\" It didn't say what they were. On November 30 Anthropic published four cryptography papers produced by its models, and cryptographers who have read them say the attacks in them can't run in the real world.",[10,14,15],{},"So according to everything public, encryption hasn't been broken. Over the past few days I went through the source material AI gathered for me, and what I kept thinking about was what encryption rests on in the first place. None of the encryption we use online every day has been proven secure. We trust it because for decades a lot of people attacked it in public and failed, and their methods and results went into papers. I think that record counts today as much as it ever did. What has changed is where the new record gets written. More and more of the most persistent attacking is done by models inside companies. When they succeed, they report to the government first. When they fail, they have no reason to write a paper. A model that attacked and failed is evidence too, and if nobody publishes it, the public record stays where it is. I think cryptography needs rules like the ones we have for disclosing software vulnerabilities, where successful attacks get reported and failed ones get published too.",[10,17,18],{},"I don't work in cryptography. I build products, write code and run an engineering team. Where the math comes in, there are a few steps I can't explain myself, and I'll say so when we get there.",[20,21,23],"h2",{"id":22},"a-lock-anyone-can-close-and-only-one-person-can-open","A lock anyone can close and only one person can open",[10,25,26],{},"When you pay for something online, your browser and the website have never dealt with each other before, yet they have to agree on a key only the two of them know, over a line anyone could be listening to. Everything after that is encrypted with this key, using faster, ordinary encryption. The method is called public-key cryptography, and in a connection it does two jobs. One is agreeing on the key. If that step is broken, any traffic recorded earlier can be decrypted. The other is the certificate signature, which proves the other side really is this website. If that step is broken, an attacker can impersonate the site from then on, but traffic that already happened is unaffected. I'll start with the first job. The easiest way to explain it is a lock. The website publishes a lock. Anyone can use it to lock something up, but opening it takes a different key, and only the website has that key. The browser locks up a random key and sends it over, the website opens it, and now both sides have the same key. That's a simplification. What websites actually do today is more complicated and I can't explain the details, but it also rests on math that's fast to compute one way and hard to reverse.",[10,28,29],{},"Small numbers make it clear. Take two primes, 61 and 53. Multiplied, they give 3233. The public lock is just two numbers, 3233 and 17. Say the message is 65. Raise 65 to the 17th power and take the remainder after dividing by 3233. You get 2790. What travels over the line is 2790.",[10,31,32,33,40],{},"To turn 2790 back into 65, you need another number, 413. Raise 2790 to the 413th power, divide by 3233, and the remainder is exactly 65. 413 is worked out from 61 and 53. 61 minus 1 is 60, 53 minus 1 is 52, and their least common multiple is 780. You want a number that, multiplied by 17 and divided by 780, leaves a remainder of exactly 1. 17 times 413 is 7021, and 7021 divided by 780 leaves 1, so the number is 413. If you don't know 61 and 53, you can't get 780. The fastest known way to break this is to split 3233 back into 61 and 53 first, which is called factoring. Nobody has proven that there's no way to break it without factoring, either. These numbers are ",[34,35,39],"a",{"href":36,"rel":37},"https://en.wikipedia.org/wiki/RSA_cryptosystem",[38],"nofollow","the standard textbook example of RSA",", and you can check every step on a calculator.",[10,42,43],{},[44,45],"img",{"alt":46,"src":47,"height":48,"width":49},"Animation: one step to multiply 61 by 53 into 3233, one try after another to undo it, and a key that needs both primes","/blogs-img/2026-12-03-encryption-01-anim.webp",720,1280,[10,51,52],{},"Factoring 3233 isn't hard. Divide it by the primes in order, starting from 2, and at 53 it divides evenly. That's 16 tries. The hard part is size. The RSA numbers in real website certificates are 2,048 bits long, which is 617 digits written out. Trying divisors one at a time like this would take a number of tries with more than 300 digits. Nobody actually does it that way. Mathematicians have far cleverer methods, which roughly work by collecting a large batch of small relations that are easy to handle and then piecing them together. But even with the best methods published today, nobody has factored a 2,048-bit number.",[10,54,55],{},"All of public-key cryptography rests on operations like this, fast to compute forward and hard to reverse unless you have a secret shortcut, which cryptographers call a trapdoor. Most websites today agree on keys using a different operation, on elliptic curves, and I can't explain how that one works.",[10,57,58,59,64],{},"In 1994 the mathematician Peter Shor published an algorithm showing that with a large enough quantum computer, factoring large numbers and reversing the elliptic-curve operation would both become easy. So far, the largest number anyone has factored with this algorithm on a real quantum computer is ",[34,60,63],{"href":61,"rel":62},"https://en.wikipedia.org/wiki/Shor%27s_algorithm",[38],"21",". But encrypted data gets stored for years, so at the end of 2016 NIST, the U.S. standards agency, opened a public call for new algorithms that even quantum computers can't handle. It set the standards in August 2024.",[10,66,67],{},"The one in the new standards that handles key agreement is called ML-KEM. The hard problem it uses can be thought of as equations with noise. As an analogy, the key is a few secret numbers. What gets published is a big pile of equations about them, where every calculation keeps only the remainder and every answer has been nudged up or down a little on purpose. The secret numbers and the added errors are both small. Without the noise, the elimination method from high school algebra would solve for the secret. With the noise, each elimination step makes the errors bigger, and by the end you get nothing. The equations are public, so anyone can use them to lock something up. Only someone who knows the secret can remove the errors and take it back out. An outsider has nothing but a pile of equations that are almost right. Why knowing the secret lets you remove the errors is a step I can't explain. I only know that ML-KEM went through several years of public review at NIST, and that the public attacks so far are still a long way from breaking it.",[10,69,70],{},[44,71],{"alt":72,"src":73,"height":48,"width":49},"Animation: public equations with a little error in each answer lock a message, and only the secret removes the error","/blogs-img/2026-12-03-encryption-02-anim.webp",[10,75,76,77,82,83,88],{},"The new math is young, the old math can't stand up to a quantum computer, and nobody wants to bet on just one, so up-to-date connections now put on two locks at once when they agree on a key. I had AI check the encrypted connection to my blog. Connecting with a current client, the method it negotiated was X25519MLKEM768, which means the old elliptic curve X25519 plus the new ML-KEM-768. An attacker has to open both. The cost is extra bytes. An X25519 public key is ",[34,78,81],{"href":79,"rel":80},"https://www.rfc-editor.org/rfc/rfc7748",[38],"32 bytes",". An ML-KEM-768 public key is 1,184 bytes, and the ciphertext sent back is another ",[34,84,87],{"href":85,"rel":86},"https://en.wikipedia.org/wiki/ML-KEM",[38],"1,088 bytes",". The same check also had a line showing 2,048-bit RSA. That's the certificate signature, the second job. If it's broken someday, the risk is that someone could impersonate my site, not that recorded data gets decrypted.",[10,90,91],{},[44,92],{"alt":93,"src":94},"Terminal output for www.aaronguo.com with one line highlighted, showing the negotiated key exchange is X25519MLKEM768","/blogs-img/2026-12-03-encryption-03.webp",[10,96,97],{},[44,98],{"alt":99,"src":100,"height":48,"width":49},"Animation: two locks on the key exchange to www.aaronguo.com, the old curve and ML-KEM-768 together, and an older client that gets only one","/blogs-img/2026-12-03-encryption-04-anim.webp",[20,102,104],{"id":103},"nobody-has-proven-its-hard","Nobody has proven it's hard",[10,106,107,108,113],{},"That claim, that reversing is hard, has never been proven. Whether there's a fast way to factor large numbers, ",[34,109,112],{"href":110,"rel":111},"https://en.wikipedia.org/wiki/Integer_factorization",[38],"nobody has proven there is one, and nobody has proven there isn't",". A proof that there isn't would also settle the most famous open problem in computer science, P versus NP, with the answer that they're not equal. That problem was posed in 1971 and is still unsolved.",[10,115,116],{},"Only one kind of encryption has actually been proven secure. It's called the one-time pad, and Claude Shannon, the founder of information theory, proved it in the 1940s. The conditions are that the key is truly random, as long as the message, used only once, and delivered safely to the other side in advance. The hotline between Moscow and Washington used it in 1963. Two computers that have never met on the internet can't do that, so we use algorithms that haven't been proven secure but haven't been broken, and we trust them because of a public record.",[10,118,119,120,125],{},"In August 1977, Martin Gardner ran a challenge in his column in Scientific American. He printed a 129-digit number, and whoever factored it could read an encrypted sentence. The prize was $100. Ron Rivest, one of the inventors of RSA, estimated at the time that factoring a similar 125-digit number would take about 40 quadrillion years. In April 1994 a team using the computers of about 600 volunteers factored the 129-digit number, and the sentence was \"THE MAGIC WORDS ARE SQUEAMISH OSSIFRAGE.\" In 2015 someone factored it again in the cloud with open-source software. It took about a day and ",[34,121,124],{"href":122,"rel":123},"https://en.wikipedia.org/wiki/RSA_numbers",[38],"around $30"," in cloud fees. A 512-bit number fell in 1999, 768 bits in 2009 and 829 bits in 2020, which took about 2,700 core-years of computing. Each time a size fell, the recommended key length went up a step, and that's why we use 2,048 bits today.",[10,127,128],{},[44,129],{"alt":130,"src":131,"height":48,"width":49},"Animation: the largest RSA number factored in public, from 426 bits in 1994 to 896 bits in 2026, still far from the 2,048 bits in use","/blogs-img/2026-12-03-encryption-05-anim.webp",[10,133,134,135,140,141,146,147,152,153,158],{},"This September the record fell twice in about two weeks, both times with AI involved. Eric Lu at the AI company Cognition had Devin, the company's coding agent, rewrite open-source factoring software to run on GPUs, and ",[34,136,139],{"href":137,"rel":138},"https://cognition.com/blog/factoring-rsa-260",[38],"factored the 862-bit RSA-260",". He estimates the computing would cost about $400,000 at market prices. Devin did most of the measurement and cluster operations, and Lu sent it more than 3,000 messages along the way. Two weeks later Stephen Weis used Claude to port the same software to GPUs, ran it for ten days on idle capacity in Anthropic's clusters, and ",[34,142,145],{"href":143,"rel":144},"https://saweis.net/posts/rsa-896.html",[38],"factored an 896-bit number",". Weis says he used the old method, the algorithm itself got no faster, and there's no effect on 2,048-bit RSA, though 1,024-bit RSA can no longer hold off anyone with data-center-scale GPUs. In both cases AI did the engineering, and the math stayed the same. In July 2022, SIKE, one of NIST's candidate algorithms, had just entered the fourth round when two researchers ",[34,148,151],{"href":149,"rel":150},"https://eprint.iacr.org/2022/975",[38],"broke it in about an hour"," on one core of one computer. The revised paper says about ten minutes. They used a theorem that had been around since 1997, and SIKE was dropped as soon as the paper came out. Some attacks never made it into the record. IBM knew about an attack called differential cryptanalysis by 1974 and, after discussions with the NSA, kept it private. Academic researchers ",[34,154,157],{"href":155,"rel":156},"https://en.wikipedia.org/wiki/Differential_cryptanalysis",[38],"found it on their own"," in the late 1980s. When an algorithm has been attacked for decades and is still standing, that's the reason people trust it, as long as most of the attacking happens in public.",[20,160,162],{"id":161},"the-new-record-is-being-written-inside-companies","The new record is being written inside companies",[10,164,165,166,171,172,177],{},"On November 20, Levent Alpöge of Anthropic released a proof of the Riemann Hypothesis, one of the most famous long-open problems in mathematics, as more than 17 million lines of Lean code that a program can check. The next day the two organizations that maintain the checking tool ",[34,167,170],{"href":168,"rel":169},"https://leanprover-community.github.io/blog/posts/riemann-hypothesis/",[38],"issued a statement"," confirming the proof passed. According to the quantum computing researcher Scott Aaronson, writing on his ",[34,173,176],{"href":174,"rel":175},"https://scottaaronson.blog/?p=10344",[38],"blog",", Alpöge says he got Anthropic's models to produce the proof. Aaronson also wrote that mathematicians won't be satisfied until they can explain the ideas in it themselves, which will probably take years. A machine can confirm it's right, and so far nobody can explain why it's right.",[10,179,180,181,186,187,192,193,198],{},"Models are attacking cryptography too. Several members of a ",[34,182,185],{"href":183,"rel":184},"https://cirg.org/statements/1/",[38],"review group"," of cryptographers had the four papers published on November 30 as early as the 16th. The review group says the scale of the attacks in them is \"galactic.\" They're far slower than methods that already existed, they would have to run on a quantum computer, and they're nowhere near breaking the new standards. ",[34,188,191],{"href":189,"rel":190},"https://words.filippo.io/nsa-advisory/",[38],"Filippo Valsorda",", who maintains the cryptography libraries for the Go programming language, reads the result as a reason to feel more confident, since it shows the AI companies are attacking the new standards and this is the best they found. The discoveries mentioned in the NSA ",[34,194,197],{"href":195,"rel":196},"https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/",[38],"press release"," still haven't been published.",[10,200,201],{},[44,202],{"alt":203,"src":204},"The NSA press release of December 2, 2026, with one sentence highlighted saying frontier companies disclosed recent discoveries that affect some cryptographic systems currently in use","/blogs-img/2026-12-03-encryption-06.webp",[10,206,207],{},[208,209,210],"em",{},"Screenshot of the NSA press release of December 2, 2026. Highlight added.",[10,212,213,214,219,220,225],{},"People outside can only guess from the wording. The CEO of Cloudflare, which carries traffic for a large share of the world's websites, says his company was briefed, and when ",[34,215,218],{"href":216,"rel":217},"https://x.com/eastdakota/status/2128333858798186982",[38],"someone asked him on X"," he said anything using RSA or elliptic curves should be treated as affected. Valsorda went through the algorithms the advisory names and inferred that the problem is with elliptic curves of around 256 bits, including P-256 and the X25519 family, which is what most websites use to set up connections today. His guess is an attack that runs on ordinary computers and for now still takes a lot of resources. That's only an inference. Nobody has confirmed it and nobody has denied it. The U.S. government's ",[34,221,224],{"href":222,"rel":223},"https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities",[38],"joint statement"," says only that, by its current assessment, these advances \"do not present an immediate and widespread threat.\"",[10,227,228,229,233],{},"I think the old record hasn't lost any value. Decades of failed public attacks are still evidence today, and the fact that the new standards took this attack and are still standing is a new piece of evidence. But more and more evidence like this is now produced inside companies. When an attack gets a result, it goes to the government first, as it did with the frontier companies this time, and part of it is made public two weeks later or more, and some of it hasn't been made public at all. When an attack fails, there's no reason to write a paper. People outside only see the occasional sentence that leaks out. On November 25 Aaronson wrote on his ",[34,230,176],{"href":231,"rel":232},"https://scottaaronson.blog/?p=10379",[38],", about cryptography, that he was \"virtually certain, from multiple reliable sources, that the AI labs are now sitting on one or more bombshells in that area.\" Three days later the Guardian quoted that line, and by that weekend X was saying RSA had been broken. My guess is that some future attack on cryptography could go the way of the Riemann proof, working first on a company's machines, with people outside understanding it only much later.",[10,235,236,237,242],{},"The harshest criticism came from ",[34,238,241],{"href":239,"rel":240},"https://www.argmin.net/p/cryptopocalypse",[38],"Ben Recht",", a computer scientist at Berkeley, who wrote that \"Anthropic ran a scare campaign around four useless crypto theory papers.\" I can't tell whether it was deliberate. I do know the order of events. There was a small briefing on the 16th, the rumors took off after the 25th, and only on the 30th did Anthropic say the papers don't affect today's systems. I think it should have said so as soon as the rumors started. I had AI do the research for this piece, and the AI was Claude, which is Anthropic's model, so wherever Anthropic comes up, please check the originals yourself.",[10,244,245,246,251],{},"Software security already has a working practice for this. Google's Project Zero, its team that hunts for security bugs, privately tells the vendor when it finds one and ",[34,247,250],{"href":248,"rel":249},"https://projectzero.google/vulnerability-disclosure-policy.html",[38],"gives it roughly 90 days",". When the time is up, the details go public whether the bug is fixed or not. I think using models to attack cryptography should come with rules like that. A successful attack gets reported first and published when the deadline passes. A failed one gets written up too, with what was tried and how much effort went into it. That second part is especially important, because without it the public record stops growing. It's also what the review group asked for at the end of its statement, calling on the AI companies to publish what they tried, which systems held up, and how much effort went into each. I agree with them. For now it's only a request. To become a rule, a standards body or a government has to take it up, and more companies have to sign on, because these few aren't the only ones using models to attack cryptography, and some of the others will never report to anyone.",[20,253,255],{"id":254},"what-well-have-to-face-next","What we'll have to face next",[10,257,258,259,264],{},"Cryptographers often think about migration with a simple inequality called ",[34,260,263],{"href":261,"rel":262},"https://en.wikipedia.org/wiki/Mosca%27s_theorem",[38],"Mosca's inequality",". X is how many years the data needs to stay secret. Y is how many years it takes to move a system to new algorithms. Z is how many years the old algorithms will hold. If X plus Y is greater than Z, you have a problem. The NSA press release says it plainly. Adversaries are already collecting encrypted data so they can decrypt it once they're able to. What gets recorded is traffic on the wire, and that traffic is protected by the key-agreement step. Once that step is broken, everything recorded can be decrypted.",[10,266,267],{},[44,268],{"alt":269,"src":270,"height":48,"width":49},"Animation: Mosca's inequality, where the years data must stay secret plus the years a migration takes run past the years the old algorithm has left","/blogs-img/2026-12-03-encryption-07-anim.webp",[10,272,273],{},"People used to read Z only as how long until there's a usable quantum computer. You could argue about that, but at least you knew what you were estimating. Now Z includes one more term, which is when someone, or some model, finds an attack that works on ordinary computers. Nobody can estimate that one.",[10,275,276],{},"Y tends to be longer than people expect. SHA-1 is an algorithm used to make digital fingerprints of data. Its weaknesses were made public in 2005, and browsers only stopped trusting certificates signed with it over the course of 2017. I see the same thing at work. A feature gets built quickly, and getting users to actually use it takes much longer. Changing algorithms works the same way. Finishing the code is only the start.",[10,278,279,280,285],{},"The two locks I described only cover key agreement. Old clients can still connect. When AI connected to my site in a way that supports only the old algorithms, the site let it in just the same, with only the X25519 lock. According to ",[34,281,284],{"href":282,"rel":283},"https://radar.cloudflare.com/post-quantum",[38],"Cloudflare's public data",", about 73% of the HTTPS requests it handled in the past week used post-quantum protection, so more than a quarter didn't. Certificates and signatures are even slower to change. The good news is that traffic from before they're broken isn't affected. The ones that matter are the long-lived ones, such as root certificates, which browsers trust at the top of the chain, and signatures written into device firmware.",[10,287,288],{},"The review group and Anthropic's announcement both recommend designing systems so that any one algorithm can be swapped out quickly. Browsers and cloud services already do this well, and my site is an example. The hard part is places where nobody can push an update for everyone, such as devices that stop getting updates once they ship, root certificates that stay valid for many years, and protocols with no way to upgrade.",[10,290,291],{},"Storing less data on your own servers doesn't help much here, because the copy the attacker has was recorded off the wire. What's worth checking is which connections carry things that travel over the network and still need to stay private ten years from now, and which data is stored wrapped in public-key encryption.",[20,293,295],{"id":294},"from-where-i-sit","From where I sit",[10,297,298,299,304],{},"My blog could have half its locks replaced without my knowing because this work is concentrated in very few companies. In November 2025, Vercel, which hosts my blog, ",[34,300,303],{"href":301,"rel":302},"https://vercel.com/changelog/post-quantum-crypto",[38],"turned on"," post-quantum key exchange by default for every site it hosts. I did nothing. I had AI search my blog's source code by keyword, and across 864 files it found no code doing its own public-key cryptography. The encrypted connections and the certificates are all handled by the provider.",[10,306,307,308,313],{},"Among the eight companies that signed a statement backing the NSA advisory (",[34,309,312],{"href":310,"rel":311},"https://openai.com/index/joint-statement-post-quantum-cryptography/",[38],"the list",") are Amazon, Google, Microsoft and Cloudflare, companies that change algorithms on everyone's behalf, and Cloudflare says it was briefed. I'm not able to judge which algorithm to move to, and leaving that to them is the right call. It's also a dependency. My site changed algorithms, and I only found out afterward, when I checked.",[10,315,316],{},"Anyone who has run an engineering team knows that how much a long stretch without production incidents tells you depends on who runs the monitoring and whether the alerts reach you. Encryption is the same. When people said it hadn't been broken in decades, the monitoring behind that was public, and anyone could look at it. Now more and more of the monitoring sits inside a few companies, and whether word gets out about what they attacked and whether it broke is up to them.",{"title":318,"searchDepth":319,"depth":319,"links":320},"",2,[321,322,323,324,325],{"id":22,"depth":319,"text":23},{"id":103,"depth":319,"text":104},{"id":161,"depth":319,"text":162},{"id":254,"depth":319,"text":255},{"id":294,"depth":319,"text":295},"Not according to anything public. The encryption we use every day has never been proven secure. We trust it because of decades of public attacks that failed. That record still counts, but new attacks increasingly run on models inside companies, and when they fail nobody publishes, so the public record stops growing. This piece starts from 61 times 53.","md",{"date":329,"image":330,"alt":331,"category":332,"tags":333,"published":338,"draft":339,"youtube":340},"3rd Dec 2026","/blogs-img/2026-12-03-encryption-cover.webp","A small white robot at a counter has rung three lavender service bells and holds a paper tag over a fourth, smaller amber bell that is not ringing. Illustration.","ai-native-systems",[334,335,336,337],"AI security","post-quantum cryptography","cryptography","AI research",true,false,"https://youtu.be/CsGDb7Mj2to","/blogs/en/did-ai-break-encryption",{"title":5,"description":326},"blogs/en/46.did-ai-break-encryption","B9QfmhIjBYnyVNRKSivYXuZgjv1IQCAf1PlGtsyDZY8",1796334526795]