Today BARNABY: This week, Anthropic, a San Francisco artificial intelligence company, published a theoretical challenge to encryption designed to withstand quantum computers. Our story begins behind closed doors in British intelligence. Welcome BARNABY: This is Hindsight. I'm Barnaby Fenwick. With me, Ezra and Marin. Today's question: How was the math that protects the internet invented twice, and why was it kept secret? Marin, take us back to the start. The Open Padlock in Cheltenham MARIN: In January 1970, in Cheltenham, England, communications engineer James H. Ellis wrote a classified report for Britain’s signals intelligence agency, GCHQ. Military couriers still carried paper cipher books because sender and receiver needed the same secret key. Ellis had been asked to make that cheaper and safer. His clue, he later recalled, came from a wartime report by an American research lab, Bell Telephone Laboratories. The person receiving a call could mask the voice with noise, then subtract the noise they’d added. The receiver could help do the locking. Ellis proved that, in theory, you could give anyone an open padlock to snap shut on a message and keep the only key yourself. But he couldn’t find the math to build it, so the report went into a classified vault. Invented Twice, Threatened Once BARNABY: A padlock in search of a locksmith. EZRA: And the locksmith heard about it over lunch. In 1973, a new GCHQ recruit, Cambridge mathematician Clifford Cocks, went back to his desk and solved it in half an hour. Large primes are easy to multiply, but hard to recover from the product. The computers would cost more than the couriers, so GCHQ shelved the work and kept it secret. MARIN: Ellis would die just weeks before GCHQ made it public. Meanwhile, three years after Cocks’s breakthrough, growing computer networks needed a way for strangers to talk securely. Unaware of the British work, Stanford researchers Whitfield Diffie and Martin Hellman published a blueprint and showed how strangers could agree on a secret key in public. EZRA: The following spring, after a Passover Seder, MIT computer scientist Ronald Rivest worked out Cocks’s prime-number idea independently. His colleague Leonard Adleman had broken scheme after scheme devised by Rivest and mathematician Adi Shamir. This time he couldn’t find a flaw. He reluctantly joined the paper. Their surnames gave RSA its initials. MARIN: Then an employee of America’s National Security Agency warned that presenting cryptography might violate munitions export laws. At a conference at Cornell, Hellman did the talking himself so his students wouldn’t have to risk prosecution. The research stayed public and became a foundation of online commerce. EZRA: Which meant online commerce was counting on certain sums staying hard. In 1994, mathematician Peter Shor showed that a powerful enough quantum computer could make those sums quick: factoring the big numbers RSA relied on, and solving the different puzzle that kept Diffie and Hellman’s shared key secret. MARIN: So the U.S. National Institute of Standards and Technology drew up replacements designed to hold up even against quantum computers. Some of its new standards rely on hard problems in lattices. Think of a repeating grid, but stretched across many dimensions. BARNABY: Marin, how did those lattice replacements end up in Anthropic’s sights this week? AI Meets the Post-Quantum Shield MARIN: Unreleased versions of Claude, Anthropic’s AI model, found a way, on paper, for a quantum computer to attack those lattice standards. Anthropic’s chief executive, Dario Amodei, said he’d delay training the next model for at least six weeks to focus staff on safety. An independent panel of cryptographers called the computing scale required ‘galactic.’ RSA is untouched, and the lattice standards in use aren’t broken. AI is probing the new locks before there’s a quantum computer big enough to try the method. Where It Stands BARNABY: Ellis’s padlock had a lovely paradox: to let strangers keep their messages secret, you could give away the design and keep only the key. Close BARNABY: My thanks to Ezra and Marin. That's Hindsight. How we got here, so you know where we are. See you tomorrow.