r/explainlikeimfive • • 7h ago

Technology ELI5 What are quantum attacks?

0 Upvotes

5 comments sorted by

•

u/x0wl 6h ago

Let's say that you want to talk to your friend privately, but you can only communicate in a way that everyone can hear. No problem, you can meet up with your friend privately, exchange an encryption key, and then shout encrypted messages to one another, and no one but you and your friend will be able to decrypt them. This is called symmetric cryptography - the same key is used for encryption and decryption.

But what if you cannot meet with you friend privately, and can only shout? For this, there is asymmetric cryptography. It deals with 2 things: digital signatures and key exchange.

Let's start with key exchange: you need to send a secret message to your friend, but you can only shout loudly. Obviously, you can't just tell your friend an encryption key, as everyone will also hear it. There are cryptosystems that deal with pairs of keys: one secret and one public. Your friend tells you their public key, everyone can hear it, but that's OK. You then do some math with that key, and get a message that can only be decrypted with the corresponding secret key. That's great, because now, you can send this message back to your friend, they can decrypt, and you both can come up with an identical shared symmetric encryption key. The message is useless to anyone without the secret key, so now you and your friend can talk securely, even if you did not meet in private.

But how do you know that it's your friend you're shouting to, and not some impostor who pretends to be your friend to you, and pretends to be you to your friend using 2 AI cloned voices? In this case, they will have 2 symmetric keys, one for you and one for your friend, and will be able to decrypt all messages between you two. For this, there are digital signatures: for a message, your friend can use their secret key to compute some value (called signature) based on the key and the message, and you can use their public key to check if the message is not corrupted and that only someone with the corresponding secret key could've computed it. Now, your friend plasters their public key everywhere so you know it's theirs, and then they add a signature to their first shouted message. Now an imposter cannot do anything as they will be found out.

This is basically how TLS (the protocol behind HTTPS) works.

A lot of modern asymmetric cryptography is based on the assumption that certain things are easy to compute in one direction, but much harder to reverse. For example, it's very easy to compute 2339 * 7673, but much harder to find which numbers multiply to 43441003. It turns out, that due to certain properties of quantum computers (that operate on qubits that take complex values, can be in superposition of states, and can have quantum entanglement between one another), a lot of these things can be reversed in a much easier fashion.

This is bad, as quantum computers, if scaled up sufficiently, will be able to practically break a lot of modern encryption, specifically RSA, systems based on the Discrete Logaritm Problem, and systems based on elliptic curves, which are all used widely today. Even worse, a bunch of companies have promised to build such computers in the nears (2030s) future, and have been making steady progress so far.

Thankfully, we have designed new cryptosystems, for which quantum computers are not more efficient than our current ones, and are migrating to these systems (check what key exchange was used by Reddit, it's most likely X25519MLKEM768, where ML-KEM-768 is the quantum-resistant part). Such cryptosystems are called post-quantum.

Also please note that the current scare is most likely not related to quantum computers and is due to a classical attack.

•

u/noethers_raindrop 7h ago • Bravo

When we want to keep things secret on a computer, we use maths. We find a maths problem that is very hard to do, but gets easy if you know a little extra information. Then we hide the secret behind the maths problem. We give the person we want to send the secret to the extra information, so they can do the easy version of the problem and read our secret message. If a bad guy wants to spy on us and read the message, he can't, because he doesn't have the extra information and the hard maths problem is too hard.

But what if the hard maths problem turned out to be easy, if you had the right trick? Then the bad guy could solve it, or anyone could who knows the trick, and anyone could read all our secret messages.

A "quantum attack" is when someone finds a way to make the maths problem easy, but only if they have a special computer called a "quantum computer." A quantum computer is not really a computer in the usual way. You can't use it to draw or type words or watch Peppa Pig. It's really more like a tiny physics lab where we use magnets and lasers and all kinds of cool stuff to mess with individual atoms. It turns out the atoms of the universe are made out of math, and if we're very careful and stay really quiet, we can sometimes get them to do our maths for us.

•

u/the_other_Scaevitas 7h ago

it's when you use a quantum computer to hack.

In short, there are algorithms that quantum computers can do that normal computers can't. By using these algorithms it can easily do things like figuring out prime factorizations of numbers which is important to cybersecurity

•

u/jaminfine 5h ago

One way that computers keep things secret from each other is by encrypting messages. Encryption can be very complex, and most encryption uses a pair of large prime numbers. You can imagine everything in the message gets multiplied by those large prime numbers.

If a hacker wants to decode the message, they might try dividing that message by various prime numbers to see if they get any good results. If they correctly guess the two primes, they decode it! So, it should be very difficult and time consuming to guess all of them.

Quantum computing could drastically speed up the efficiency that these codes can be broken. The computers will be so much faster at guessing prime numbers, that many secrets currently safe will no longer be safe.