Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 5 min read

AI vs. Quantum Computers: Two Very Different Threats to Your Secrets

You may have seen headlines saying that AI is about to break encryption. Others say quantum computers will. Both matter. But they are not the same threat. The short version: AI helps people find weak spots in a lock.

AI vs. Quantum Computers: Two Very Different Threats to Your Secrets

You may have seen headlines saying that AI is about to break encryption. Others say quantum computers will.

Both matter. But they are not the same threat.

The short version: AI helps people find weak spots in a lock. A powerful quantum computer could solve the math that some locks are built on.

Let's see what that means, with no math degree required.

1. First, how do digital locks work?

Every time you open your bank's website or send a private message, your device uses encryption. The method is usually public. The protection comes from a secret key.

There are two main kinds of locks:

  • One shared key (symmetric encryption, like AES). You and your friend both have a copy of the same key.
  • Public lock, private key (like RSA or elliptic-curve cryptography, ECC). Anyone can lock a box for you, but only you can open it. The same family of ideas also creates digital signatures, which prove that a website or software update is genuine.

Why can't someone just work out the private key?

Because some math is easy in one direction and extremely hard in the other.

RSA is built on this idea. ECC uses a different puzzle (called the elliptic-curve discrete logarithm problem), but the principle is the same: easy to go forward, very hard to go back.

2. AI: a tireless research assistant

AI is not a new kind of computer. It mostly runs on ordinary hardware. What it adds is the ability to read, guess, test and repeat, again and again.

Think of a lock as a building. A researcher might spend months looking for a loose window. AI can help check many more windows, much faster.

That window might be in the design of an algorithm, or in the code that someone wrote to use it.

But finding a loose window is not the same as making all walls disappear.

What has AI actually done?

In July 2026, Anthropic published research in which its AI model, Claude, helped improve two attacks.

  • HAWK is a candidate for a new kind of digital signature. The improved attack on its smallest test version dropped from about 2⁢⁴ steps to about 2³⁸. That is millions of times less work.
  • AES normally scrambles data in 10 or more repeated steps, called rounds. The research attacked a shortened, 7-round version and made the previous attack 200 to 800 times faster. It still needs an impossibly large amount of data.

This is real progress: AI contributed to the math of code breaking. But Anthropic says neither result has a practical impact on today's computer systems. Full AES was not broken.

3. Quantum computers: a different kind of machine

A quantum computer is not just a faster laptop. It uses the strange rules of quantum physics to compute in a different way. It is only better at certain kinds of problems.

For encryption, two quantum methods matter: Shor's algorithm and Grover's algorithm.

4. Shor's algorithm: the big one

In 1994, the mathematician Peter Shor showed that a powerful enough quantum computer could efficiently solve the puzzles behind RSA and ECC.

On such a machine, an attacker could take your public key, which anyone can see, and work out your private key. Then they could read protected conversations or fake digital signatures.

The important part: a quantum computer that can do this does not exist today. The recipe is known. Building the kitchen is the hard part. Nobody knows exactly when it will happen: estimates range from a few years to a few decades.

5. Grover's algorithm: a smaller problem

Imagine trying every key on a giant key ring until one fits. Grover's algorithm (1996) is a quantum shortcut for this kind of blind search.

Going from 2¹²⁸ to 2⁢⁴ sounds scary. But these quantum steps are slow, costly, and mostly have to happen one after another. The internet engineering guide RFC 9958 says AES-128 remains secure in practice. Some government agencies still ask for AES-256, which leaves a huge safety margin.

(Hash functions, the "digital fingerprints" of files, are also affected in some ways, but the calculation is different and not as simple.)

So: Shor can break the foundation of RSA and ECC. Grover only makes some searches shorter.

6. AI vs. quantum, side by side

Question AI-assisted attacks Quantum algorithms
What is it? A smart helper for finding weaknesses New methods for a new kind of computer
Hardware Mostly ordinary computers Quantum hardware plus ordinary computers
RSA and ECC No general AI method is known to break them Shor could, on a big enough machine
AES No known AI break of full AES Grover shrinks the safety margin
When? Helping researchers today Prepare now for a future machine

7. "It doesn't exist yet. Why worry now?"

Because an attacker can save your encrypted data today and try to open it years later.

If your data will be worthless next week, this matters little. If it must stay private for 20 years (health records, state secrets, long-term contracts), it matters now.

8. The good news: new locks already exist

In August 2024, the US standards agency NIST published its first three post-quantum cryptography standards:

Standard Name Job
FIPS 203 ML-KEM Agreeing on a shared secret key
FIPS 204 ML-DSA Digital signatures
FIPS 205 SLH-DSA Digital signatures, based on hash functions

You do not need a quantum computer to use them. They run on normal computers and are designed to resist both normal and quantum attacks.

9. What should you do?

If you are a normal user: keep your phone, computer, browser and apps updated. That is how most new protections will reach you.

If you run systems or build software:

  1. Find your locks. Check code, certificates, TLS settings, VPNs, login systems, software signing, firmware updates, payments and third-party services.
  2. Rank your secrets by how long they must stay private.
  3. Plan the move to post-quantum cryptography. It is rarely a one-line change: protocols, certificates, hardware and compatibility may all be affected.
  4. Check your implementation. Use well-maintained libraries and test for mistakes, such as timing leaks. AI can help review, but it should not replace independent testing.
  5. Stay flexible (cryptographic agility), so you can swap an algorithm without rebuilding everything.

The takeaway

  • AI makes the search for weaknesses faster and smarter.
  • Shor's algorithm, on a future quantum computer, threatens RSA and ECC.
  • Grover's algorithm reduces the safety margin of symmetric encryption, but is far less dramatic.

Cryptography is not dying. It is changing, and we have time to change with it if we start now.

Your turn: do you know where your organization uses RSA or ECC? Tell me in the comments.

Further reading

  1. RFC 9958: Post-Quantum Cryptography for Engineers (IETF, June 2026)
  2. NIST IR 8547: Transition to Post-Quantum Cryptography Standards (October 2026)
  3. NIST: Post-Quantum Cryptography project
  4. NIST: What Is Post-Quantum Cryptography?
  5. Anthropic: Discovering Cryptographic Weaknesses with Claude (July 2026)
πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.