DataStealth
Blog

Will P versus NP break encryption? A look at where the real risk sits.

AI is making remarkable progress in mathematics, and it is natural to wonder what that means for cryptography. A closer look at P vs NP, quantum computing and AI agents reminds us there's work ahead.

Daniel Thanos
6 min read
Illustration of a combination padlock facing a possible math breakthrough beside a token ticket that has no lock to pick.

AI is making genuinely impressive progress in mathematics.

In October, OpenAI announced a batch of results that included a claimed proof of the quasi-Riemann hypothesis, a weaker version of the Riemann hypothesis that, as Quanta Magazine reported, human experts have since unpacked.

It is a remarkable moment, and it raises a reasonable question for anyone who works in security: if AI can make headway on problems like these, could P versus NP be next, and what would that mean for cryptography?

It is a question worth thinking through carefully.

Having spent many years working in cryptography and data protection, my view is that both P versus NP and quantum computing deserve attention, and that the best way to prepare for what may come tomorrow is to take practical steps today, starting with the risks AI is already creating.

This post walks through why.

What a P equals NP proof would and would not mean

P versus NP is one of the Clay Mathematics Institute's Millennium Prize Problems. In plain terms, it asks whether every problem whose answer can be checked quickly can also be solved quickly. Much of modern cryptography rests on the assumption that the answer is no. Finding an encryption key is hard.

Checking a candidate key against a known sample of plaintext and ciphertext is easy. If P equaled NP, general key search would become solvable in polynomial time.

That sounds alarming, but polynomial time does not necessarily mean fast. Consider a problem of size 1,000 and a computer doing a billion operations per second:

  • An n² algorithm needs a million operations. That takes about one millisecond.
  • An n¹⁰ algorithm needs 10³⁰ operations. That takes roughly 32 trillion years.

Both are polynomial, yet only one would be a practical attack. These figures are illustrations rather than estimates for attacking AES, but the same reasoning applies. Stephen Cook, whose work established the foundations of NP-completeness, makes a similar point in his official problem description for the Clay Institute, noting that a program requiring n¹⁰⁰ steps could never be executed even on an input as small as n = 10. Cook is also clear that a genuinely practical algorithm would have serious consequences for cryptography.

That is the scenario worth watching for, and a proof on its own would not necessarily deliver it.

If you are not a mathematician, this is what it means. Think of a combination lock. Checking whether a combination is right takes a second; finding it means trying possibilities until one works. A proof that P equals NP would show that a shortcut to finding the combination exists. It would not, on its own, hand anyone that shortcut, and the shortcut could still take far longer than any attacker has. Security would only change if someone also produced an efficient, working method, and that would be a separate and much harder step.

Infographic comparing encryption as a lock a math breakthrough could pick with tokenization, where fragmented tokens leave nothing to pick.

Why verification takes time

It is also worth remembering that new proofs, however they are produced, take time to confirm. AI systems can now generate long mathematical arguments quickly, while careful verification still moves at a human pace. In a long chain of reasoning, every step has to hold, and confirming that across hundreds of pages is painstaking work.

The mathematical community is adapting well to this. Results that hold up earn that status through expert review and, increasingly, machine-checked formalization.

That process is a strength, and it means any future possible claim about P versus NP will be tested thoroughly before it changes how anyone should think about security.

Quantum computing is a more concrete consideration

Quantum computing is a more concrete consideration than a P equals NP proof, and its impact is better understood. Its strongest known effect is on asymmetric cryptography: the RSA and elliptic curve algorithms behind key exchange and digital signatures.

That is why NIST finalized its first post-quantum standards in 2024, and why its transition guidance, NIST IR 8547, finalized in October 2026, deprecates quantum-vulnerable public-key algorithms such as RSA and elliptic curve cryptography after 2030 and disallows them after 2035.

Symmetric encryption is in a much stronger position. NIST's post-quantum FAQ says AES-128 "will remain secure for decades to come" and that AES-192 and AES-256 will be safe for a very long time. Our vault encrypts the data it holds with AES-256.

Vaulted tokenization adds a further layer.

A randomly generated vaulted token has no mathematical relationship to the value it replaces, so there is no algorithm, quantum or classical, that turns the token back into the data.

The vault and its mappings still have to be protected, and the connections that carry data to it still need post-quantum migration. Ed Leavens explores that trade-off in Q-Day is not Y2K, and the differences between approaches in vaulted vs. vaultless tokenization.

The risk that is here today

When I think about where data is most exposed today, the answer is less about a theoretical breakthrough and more about how AI is changing day-to-day attacks.

AI is becoming very capable at finding and chaining the vulnerabilities that lead to privileged systems and the data inside them. In my experience, this does not require a frontier model, and it does not involve breaking any cryptography at all.

On November 13, the FBI published a FLASH advisory on ARTEX, an open-source, AI-driven penetration testing framework that threat actors have repurposed.

According to the advisory:

  • Malicious use dates back to at least August 2026, against financial services, government, technology, defense, energy, healthcare, telecommunications and other sectors.
  • ARTEX automates intrusion from reconnaissance through data exfiltration, with little human input once objectives are set.
  • The FBI reports "some intrusions progressing from initial targeting to privileged access in under three hours."
  • Researchers found more than 1,600 publicly exposed ARTEX consoles in early November, and the FBI says real deployments are likely much higher.
  • In one campaign against South Korean financial institutions, attackers exfiltrated personal information on roughly 67,000 people.

The original repository was taken down in October, though forks and copies remain available. Tools like this are now part of the landscape, and planning for them is part of good security practice.

For most organizations, the nearer-term risk is not encryption being broken. It is an attacker reaching privileged access, where data is often readable in the clear.

Protecting the data itself

The FBI's recommended mitigations are sound: inventory and reduce your external attack surface, harden identity and access, rate-limit high-impact APIs, and scan for embedded secrets.

These remain the foundation.

As AI shortens the time between a missed weakness and privileged access, it also makes sense to plan for the moment one of those controls doesn't hold. We explore that idea further in the myth of the unbreachable perimeter.

This is where data-centric protection fits.

When sensitive values are discovered and replaced with tokens before they reach databases, logs, test environments and SaaS applications, an agent that gets privileged access to those systems finds placeholders. The real values sit in a vault that uses a quorum-based shard model, where no single node holds enough to be worth compromising. Dynamic data masking limits what users and services see in the clear. The DataStealth platform does this without agents or changes to application code, and the same approach applies as AI agents inside your own business gain tool access, as we cover in agentic AI security.

Keeping perspective

AI's progress in mathematics is exciting, and it is healthy for the security community to ask what it might mean. If a proof that P equals NP ever arrives with a practical algorithm attached, the whole industry will have work to do, and that conversation will deserve care and clarity.

In the meantime, the steps we take today are what prepare us for tomorrow: keep an eye on the long-term questions, continue the post-quantum transition, and give equal attention to the practical risks that AI is already shaping.

Protecting the data itself is one of those steps, because whatever comes next, it limits what an attacker can find.

Reduce what an attacker can take

DataStealth discovers sensitive data and protects it with vaulted tokenization and dynamic masking, without agents or changes to application code.

Book a demo and technical walkthrough with our team to see how it can elevate your organization's data protection strategy for the AI age.

About the authorDaniel Thanos, Chief Technology Officer (CTO)

Daniel Thanos is DataStealth's Chief Technology Officer, bringing extensive global experience in software engineering and technology leadership with deep expertise in AI/ML and cybersecurity. He provides hands-on technical leadership rooted in innovation and collaboration, building solutions that deliver real results for DataStealth's customers and partners.

Connect on LinkedIn →

See DataStealth in Your Environment

Book a demo and technical walkthrough to see how DataStealth fits your architecture.

Schedule a Demo