Ashley Hirst Writing on community, artificial intelligence and insurance
Artificial intelligence

If P = NP, what actually breaks?

A proof alone changes little. A practical algorithm would break all computational cryptography - a different thing from breaking RSA or elliptic curves - while handing us a problem-solving tool unlike anything we have had.

Ashley Hirst · 29 November 2026 · 9 minute read

The rumour mill is going crazy right now online - I’ve been amazed by how people of so many different backgrounds are asking whether the world ends if P = NP! I’ve been asked by a few people what it might mean. Here’s a view, but full disclosure - my maths is somewhat rusty… Short version of my best understanding, if someone really has proved P = NP, then I don’t think the world is going to end tomorrow, but I do think there are meaningful consequences coming.

Announcing a proof doesn’t necessarily change anything

The first question is not whether the maths is true, it is whether the result is usable.

A proof that P = NP which only shows a fast algorithm must exist, without telling us what it is, changes almost nothing. Even a proof that does give us the algorithm could give us something called a galactic algorithm: one that runs in polynomial time in theory, but needs more operations than there are atoms in the observable universe for any input we actually care about. A result like that might win the Clay Millennium Prize but doesn’t change anything for us.

The world only changes if the proof is constructive and the algorithm is practical: low-degree polynomial time, with constants small enough to run on real hardware. This is the scenario I’m going to focus on.

Not all cryptography breaks the same way

“Cryptography is broken” can mean quite different things.

Most public-key cryptography in use today rests on one of two hard maths problems. RSA, the older system, relies on the fact that multiplying two large primes is easy, but recovering them from the product is, as far as anyone knows, not feasible at the key sizes we use. Elliptic curve cryptography, or ECC, relies on a different problem: a “discrete logarithm” on a particular kind of curve. ECC gets the same security from much smaller keys (around 256 bits, against about 3,072 for RSA), so it has become more popular. It sets up almost every secure web connection, signs messages in apps like Signal, sits behind passkeys, and is what Bitcoin and Ethereum wallet keys are built on. RSA is still everywhere too, particularly in the certificates that prove a website is who it says it is, in software signing and in older corporate systems.

There’s a subtlety here. Neither problem is thought to be among the hardest problems in NP. They sit somewhere in the middle, which means either could fall on its own without anyone proving P = NP. So if what’s really behind the rumours is “someone has broken elliptic curves”, that’s serious, but it isn’t the same claim. And a proof that P ≠ NP wouldn’t make RSA or ECC safe either.

That gives four quite different scenarios.

If RSA alone broke, say through a fast new way to factor large numbers, it would be serious but containable. Anyone could forge RSA certificates and signatures, so impersonating websites and pushing out fake software updates would become possible until systems moved over. But most web traffic of the last decade set up its keys using elliptic curves, so the bulk of recorded traffic would stay private. And there is somewhere to go: ECC and post-quantum alternatives already exist and are being deployed. Painful, but well understood.

If ECC broke, it would hurt more, because it does so much of the important work today. Recorded web traffic would become readable, except where newer hybrid post-quantum key exchange was used, which the major browsers and networks have been rolling out since 2024. Signatures on passkeys, messaging apps and many identity systems could be forged. And cryptocurrency would take a permanent hit: coins held at any address whose public key has been revealed could simply be taken, with no central authority to appeal to.

A large quantum computer breaks both, and this is the threat the industry has actually been preparing for. Shor’s algorithm makes both factoring and the elliptic curve problem easy, and, like an ECC break, it opens up recorded traffic. But it doesn’t break everything. Symmetric ciphers like AES and hash functions survive, with larger keys in some cases, and post-quantum cryptography is designed for exactly this scenario. It’s a migration problem, a big and expensive one, but there’s somewhere to migrate to.

P = NP (non-galactic, practical) is different. A practical solver breaks RSA and ECC, but it doesn’t stop there. Symmetric ciphers fail too, because recovering a key from a known plaintext and ciphertext also becomes cheap. So do hash functions, which means password storage, software integrity checks and blockchain proof-of-work stop meaning anything. And post-quantum cryptography doesn’t help. It’s designed to resist quantum computers, but it still relies on some problem being hard to reverse. If P = NP, no such problem exists. One-way functions are ruled out entirely, and every scheme built on computational hardness goes with them. That’s the real distinction: an RSA or ECC break, even a quantum one, leaves us somewhere to go. A practical P = NP solver doesn’t.

Intelligence agencies and others have been storing encrypted traffic for years, betting that some of it will become readable later. That’s exactly why the industry is moving to post-quantum cryptography. Under a practical P = NP solver, that move doesn’t help: everything recorded becomes readable, including traffic protected by post-quantum schemes and data encrypted at rest. Decades of messages that were private when they were sent would stop being private. Your personal data might as well not have been encrypted.

What is left is security that does not depend on anything being hard to compute: one-time pads carried by courier, and quantum key distribution over dedicated fibre. Even quantum key distribution needs an authenticated channel alongside it, and without computational cryptography that authentication also has to come from keys exchanged physically in advance. Secrecy becomes slow, expensive and dependent on moving physical objects around.

From here on I’m back to the P = NP case.

Banks would freeze; insurers would face something worse

Banks would face an operational freeze, not the loss of the money itself. Unlike cryptocurrency, banking doesn’t depend on who holds a key. Ownership is a legal record held across custodians, payment systems and central banks. Payments could be halted, fraudulent entries unwound and balances rebuilt from offline records. The slow parts of traditional finance - callbacks, wet signatures, settlement delays - would turn out to be a large part of its resilience.

Insurers would have a harder problem. Cyber cover is priced on the assumption that breaches are mostly independent of each other. A failure of every encrypted system at the same moment is the opposite of independent: it is the largest possible accumulation event, and I would expect the war and infrastructure exclusions in cyber wordings to be argued over in court for a decade. I have no idea what would happen to liability-related claims, particularly in markets such as the US.

The same institutions would also gain the most from the solver once they had rebuilt their payment systems on closed networks. Portfolio optimisation, capital allocation, catastrophe model calibration and much of reserving involve hard combinatorial search. I do not think it is an exaggeration to say the analytical advantage would be larger than anything the industry has had before.

Ordinary businesses lose cheap trust

Outside finance, I think most companies would discover how much of their business depends on being able to trust strangers cheaply. When you buy from a small online shop you have never heard of, your browser checks the shop’s identity in milliseconds using public-key certificates. Without them, small vendors have no cheap way to prove who they are. I would expect commerce to move behind a small number of accredited intermediaries, such as banks, telecoms operators and the large platforms, that can verify counterparties through private channels.

Anything held in third-party clouds would be exposed, and I would expect a fast retreat to on-premise systems and air-gapped networks.

On the other side of the ledger, scheduling, chip design, freight routing, software verification and materials discovery are all full of hard search problems. Any firm whose margins are limited by logistics, engineering or R&D would get years of incremental improvement in a few months.

Society would trade openness for capability

At the level of society, the trade is uncomfortable. Power would concentrate in states and large platforms, because they are the only organisations able to afford physical key distribution and closed verification networks. Privacy would shrink: the past becomes readable, and the future internet would be more closely monitored.

Against that, the scientific gains would be very large. Protein design, drug candidate search and power grid optimisation would all speed up. The biggest change, I think, would be in mathematics itself. Checking a proof is already easy. Finding one is harder, and a practical solver would make finding short proofs nearly as cheap as checking them. Gödel made this point to von Neumann in 1956: a fast method for that problem would let a machine do much of the work of a mathematician. We would give up an open, decentralised internet built on hard maths, and get in return a more bureaucratic, more watched and more physical one, alongside a problem-solving tool unlike anything we have had.

Where this leaves me

I have zero idea if this will happen. I find it intellectually very hard to believe that P = NP, and even if it is, that there is a non-galactic approach. But the last 12 months have also made me realise just how far off the intellectual cutting edge on these topics I really am.

I think the thought process around this is still relevant, though. It makes clear that the digital economy runs on a system of trust that in turn rests on an assumption about mathematics that nobody has proved. It has held up well so far. But anyone responsible for an organisation’s resilience should know that it is an assumption, and should think about what they would do if it failed.

2048-bit RSA

The biggest rumour doing the rounds is that what has actually been cracked is 2048-bit RSA. If this is what turns out to have happened, here’s what you can specifically do:

For IT teams:

  1. Your SSH keys - if they aren’t Ed25519 already, do it now. Really, now. Disable the RSA SSH host AND user keys
  2. Don’t use RSA-encrypted email for anything sensitive any more
  3. Remember RSA-signed certs, RSA-signed software updates, signatures, etc - aren’t actually signed any more
  4. Ask someone much smarter than me about other consequences. By the way, get on x.com - it’s where the best cutting edge interaction is outside of closed groups

For everyone:

  1. WhatsApp / Telegram / Bitcoin probably ok for a while longer, but Signal is the real strong option now - they’re using the strongest approach around
  2. Ask your IT teams about switching to hybrid post-quantum encryption. There are methods already deployed. Time to move, this is a warning
  3. Consider air-gapping / local storage of real secrets. Everything else probably isn’t secret longer term

Portrait of Ashley Hirst

I work in insurance and write about artificial intelligence, risk and community — Jewish and British. This site collects the writing. More about me.