News

How Claude Cracked a 30-Year Cryptography Mystery

Claude AI solved a $30,000 cryptography bounty in 30 minutes, tracing the secret origin of elliptic curve constants used in HTTPS security worldwide.

Every time you visit a website over HTTPS, your browser and the server perform a handshake using math that most people will never think about. Hidden inside that math are a few constants — numbers that shape the cryptographic curves protecting your banking sessions, your messages, your passwords. For decades, no one could fully explain where those constants came from. Last month, Claude figured it out in half an hour and walked away with a $30,000 prize.

The Curve at the Heart of Internet Security

Modern HTTPS encryption often relies on something called elliptic curve cryptography (ECC). The core idea: you pick a curve with a specific equation, choose a starting point on it, and then perform a geometric operation — drawing tangent lines, finding intersections, reflecting points — a certain number of times. The number of operations becomes your private key. The final point’s coordinates become your public key.

The elegance is in the asymmetry. Knowing where you ended up tells you almost nothing useful about how many steps it took to get there. Reversing the process requires computation that would take longer than the age of the universe on classical hardware. That’s why banks trust it.

But the curve’s shape depends on a specific constant — call it the b value. Change b, and you get a different curve with different security properties. Some curves are strong. Others, if chosen carelessly (or deliberately), can have subtle weaknesses that let a sophisticated attacker reverse the math far more efficiently than they should be able to.

The NSA Set the Constants, Then Forgot Why

The elliptic curves used in most of the world’s HTTPS traffic were standardized by the U.S. National Security Agency and published through NIST. The NSA picked the b values. These constants weren’t generated randomly in the open — they were derived from a seed number using a hash function, so the output looks arbitrary. The question is: where did the seed come from?

The person who implemented the algorithm was tracked down and asked directly. His answer was unsatisfying: he thought the seed might have come from hashing some informal phrase from the period, but he couldn’t remember what it was. He died three years ago, and the explanation died with him.

That gap matters. If the NSA chose a seed they knew would produce a curve with a hidden weakness, they’d have a skeleton key to encrypted traffic across the internet. No one could prove that happened — but no one could prove it didn’t, either. The suspicion was enough that a researcher named Filippo Valsorda (known online as Filio) posted a $30,000 bounty for anyone who could definitively trace the seed’s origin.

How Claude Solved It in 30 Minutes

Early attempts to crack the mystery tried feeding Claude hints — prompting it to check whether the seed came from a specific type of phrase or a particular era of tools. That approach failed. When researchers instead gave Claude the problem cold, with no leading clues, the model took a different path.

It systematically enumerated pseudorandom number generators from the 1990s and ran them. Within 30 minutes, it identified the culprit: a function called L48 (a linear congruential generator common in that era). By applying a technique called LRL (linear recurrence analysis), Claude reverse-engineered how the random function was being seeded and iterated.

The answer was almost anticlimactic. The seed was simply the output of plugging the current timestamp into that random function — whoever generated the constants just ran the PRNG seeded with the system clock at that moment. No grand conspiracy. No secret phrase. Just a developer in the 1990s doing what developers did: grabbing a convenient source of randomness and moving on.

Claude also managed to reconstruct the logic behind how the curve’s starting point was chosen, reverse-engineering that piece of the puzzle through similar analysis.

What This Actually Means for Security

The short answer: your HTTPS traffic is still fine. Claude didn’t find a backdoor — it found an origin story. The seed being a timestamp means the constants were generated carelessly, not maliciously. There’s no evidence of an intentional weakness baked into the curves.

That said, the cryptography community has been migrating toward curves with more transparent provenance for years — particularly Curve25519, designed by Daniel Bernstein with a fully documented, verifiable generation process. Transparent-by-design curves are simply easier to trust, regardless of what any audit turns up.

Filippo himself showed up in the comments after the bounty was claimed to push back on the more extreme conspiracy readings. Some observers noted the mystery isn’t entirely closed — knowing the seed came from a timestamp doesn’t explain why that specific moment was chosen — but the backdoor hypothesis now has far less to stand on.

The Practical Takeaway

This episode is a clean illustration of something worth internalizing: AI doesn’t just accelerate known workflows. Given a well-defined research problem and enough latitude to explore without constraints, it can systematically grind through hypothesis spaces that would take a human team months. Thirty minutes to enumerate decades-old PRNGs and reconstruct an undocumented implementation is the kind of brute-force intellectual work that humans deprioritize because it’s tedious, not because it’s hard.

If you’re sitting on a long-standing technical mystery — an undocumented legacy system, an unexplained artifact in old data, a format with no surviving specification — it might be worth handing it to Claude with minimal framing and seeing what it finds before assuming the answer is lost.

Related