Will AI Break Encryption?

Has AI broken all encryption? Will it? There's a lot of doomsday hype around this of late. Here's a quick look at what's actually going on, in a way that humans can understand.

AISecurityCryptography
Robot Hamlet: To P or N to P.

The commentators have latched onto some recent mathematical proofs, some of which have been aided by AI, and have embarked on the usual run of neophyte hyperbole about the end of encryption and security. Concerns and claims of this arise every so often, with accompanying buzzword-compliant nonsense, and serve only to create unnecessary panic and page clicks. This very brief article aims to set this out all in lay terms, pragmatically, and without the embellishment and hype from either end of the AI U-curve (where the Doomers and Booster occupy each extreme).

I will make some oversimplifications and generalisations that will likely make cryptographers cringe, for which I apologise in advance. This is aimed squarely at giving people outside the cryptography community a better overview of the problem than I'm seeing in the media and sub-media.

What Is RSA Cryptography?

At its core, this whole panic-cycle centres around whether RSA (and similar) cryptography can be broken or not. I'll use the blanket term cryptography throughout to cover RSA and similar, but this is a big oversimplification as it's a big field. The thing to remember is that this cryptography is everywhere and is used for:

  1. Confidentiality -- the assurance that only certain parties can read some data. This is what prevents your credit card number or ID information from being read as you send it to a website1.
  2. Authenticity -- the assurance that some data came from the entity that it claims to be from. That you made a transaction from your account and not someone claiming to be you2.
  3. Integrity -- the assurance that the data was not modified by anyone. Using the bank transaction example, integrity would mean that we know that nobody changed the transaction to change the destination account number to their own.
  4. Non-Repudiation -- the assurance that the other party can't claim they didn't say or do something. I can't undo a transaction by claiming I never initiated it.

In fact, the above make up four of the five pillars of information security and cryptography is central to all of them.

This ought to give you some insight about what cryptography does for us, and an idea of how it touches absolutely everything digital that you do or touch.

What's Math Got To Do With It?

Just as Tina Turner famously sang, "What's math got to do with it? Who needs a lock when a lock can be broken?"

So much of the cryptography stuff above comes down to a single premise -- that some things are really easy to do in one direction, and really hard in the opposite direction.

For example, if I give you the numbers 4 and 3, it's likely not too much of a challenge to multiply the two together to get 12. Whether you do it in your head, with a calculator or on your fingers, it's one multiplication sum. However, doing the reverse -- starting with the number 12 and turning it back into all of the numbers that could be multiplied to get 12 -- is more complicated. Most people would do this by starting at 1 and counting up, dividing 12 by each number along the way. 12 / 1 = 12. 12 / 2 = 6. 12 / 3 = 4. 12 / 4 = 3. At this point, we know we can stop because the rest repeat. But it took us four division sums to get there. If we start with the numbers 4 and 5 to make 20, it's still one multiplication sum to turn 4 and 5 into 20, but the reverse is now around 10 division sums to get all of those answers.

A computer can do many billions of these sorts of calculations quickly, and in cryptography we need only one right answer, so RSA cryptography relies on very, very, very large prime numbers. Numbers so large that it would take current super computers basically forever to do all the sums needed to get to the right answers.

Everything comes down to the assumption or theory that it's easier to create a number with multiplication, but much harder to turn a number into the two numbers multiplied to get there.

Hunches, Theories, Proofs and Facts?

The above mathematical assumption about multiplication being easier than the reverse is a theory -- a hypothesis or conjecture. It seems like common sense and seems pretty watertight the way I've written it above. However, nobody has ever mathematically proven that there isn't a very fast shortcut that can be taken.

You'll see the wider mathematical unsolved proof referred to as P ≠ NP or P = NP. Essentially proving either side of our hypothesis earlier that some things are easy to do one way, and much harder to do in reverse.

If it is ever proven one way or the other, it means that either:

  1. The cryptography that we believe to be unbreakable today, will likely remain unbroken by existing technologies3, or
  2. The cryptography used everywhere could potentially be broken faster than expected.

Did The Robots Crack It? Will They Crack It?

It seems impossible to broach any topic around technology these days without having to somehow bring Chatbots into the chat.

As you can imagine, being able to prove that the above is definitively true or false takes a lot of mundane calculations to be made repeatedly. So mathematicians are using computers (including AI models) to help get to an actual proof for this problem and a whole host of other mathematical problems. It has been recently reported, and some confirmed by peer review, that a number of these kinds of mathematical problems have been proven. None of them so far have been this P = NP problem used for all of our cryptography.

This is actually a really good use for something like AI. Helping very smart people to accomplish tasks that can't be accomplished at human speed, and for the good of society and humanity.

Are we on our way to proving whether the mathematics behind much cryptography is sound? Absolutely. Are we close? We have no way to tell. Will it be proved either way? Other than already hypothesising that Quantum Computing will be able to break these algorithms, and having quantum-resistant replacement tech, we don't know that either.

What's Next?

If mathematicians (possibly with the help of AI) prove our theory above is true, then nothing changes. If mathematicians can't prove that our theory above is false, then we're in the same position we are today -- namely that we have 99 security problems, but RSA cryptography ain't one.

If the nerds and their robot army prove that our above theory is false, it means that there is a possibility that someone could develop software that could potentially break most existing data encryption in a meaningful timeframe. It doesn't automatically mean that all encryption is immediately defunct. This is also a problem we have had to deal with before.

It is likely that, even with the help of AI, some time will pass before it's possible for a bad actor to exploit the new findings. It's also unlikely that it will be a magic skeleton key that can immediately unlock everything ever encrypted in real time (as seen on TV). It's also likely that we'll see replacement cryptographic algorithms to defend against whatever's found, and for that to be rolled out fairly quickly. For data that is encrypted today, there will need to be a plan -- much like the scale and coordination we enacted to guard against Y2K issues -- to re-encrypt the data, which will take time.

What makes me confident that if we see it broken that we'll also see a timely fix? Because we've seen it many times before. There have been flaws found in previous generations of cryptography algorithms and we've dealt with it in the past.

It's not impossible that everything becomes immediately decryptable and all of industry and society collapse within days. But as the mathematicians like to say before something has been proven, it's fairly improbable.

Footnotes:

1

Although what happens with that data when that website stores it is more up in the air and a widespread issue throughout the industry.

2

Banks are actually slightly different in that you're trusting a third party to handle your account and your transactions, but it's conceptually similar and is literally how cryptocurrency wallets and transactions work and are secure.

3

We actually already suspect that this mathematics will be able to be broken by Quantum Computing when that becomes advanced enough and have been working to devise new cryptography for those cases.

Comments

Powered by Bluesky. Reply on Bluesky

Loading replies…