Over the past few years, a new type of computer has arrived on the block: the quantum computer. It’s arguably the sixth type of computer:
- humans – before there were artificial computers, people used, well, people. And people with this job were called “computers”.
- mechanical analogue – devices such as the Antikythera mechanism, astrolabes or slide rules.
- mechanical digital – in this category I’d count anything that allowed discrete mathematics, but didn’t use electronics for the actual calculation: the abacus, Babbage’s Difference Engine, etc.
- electronic analogue – many of these were invented for military uses such as bomb sights, gun aiming, etc.
- electronic digital – I’m going to go out on a limb here, and characterise Colossus as the first electronic digital computer: these are basically what we use today for anything from mobile phones to supercomputers.
- quantum computers – these are coming, and are fundamentally different to all of the previous generations.
What is quantum computing?
Quantum computing uses concepts from quantum mechanics to allow very different types of calculations to what we’re used to in “classical computing”. I’m not even going to try to explain, because I know that I’d do a terrible job, so I suggest you try something like Wikipedia’s definition as a starting point. What’s important for our purposes is to understand that quantum computers use qubits to do calculations, and for quite a few types of mathematical algorithms – and therefore computing operations – they can solve problems much faster than classical computers.
What’s “much faster”? Much, much faster: orders of magnitude faster. A calculation that might take years or decades with a classical computer could, in certain circumstances, take seconds. Impressive, yes? And scary. Because one of the types of problems that quantum computers should be good at solving is decrypting encrypted messages, even without the keys.
This means that someone with a sufficiently powerful quantum computer should be able to read all of your current and past messages, decrypt any stored data, and maybe fake digital signatures. Is this a big thing? Yes. Do you want J. Random Hacker to be able to pretend that they’re your bank? Do you want that transaction on the blockchain where you were sold a 10 bedroom mansion in Mayfair to be “corrected” to be a bedsit in Weston-super-Mare?
Some good news
This is all scary stuff, but there’s good news, of various types.
The first is that in order to make any of this work at all, you need a quantum computer with a good number of qubits operating, and this is turning out to be hard. The general consensus is that we’ve got a few years before anybody has a “big” enough quantum computer to do serious damage to classical encryption algorithms.
The second is that, even with a sufficient number of qubits to attacks our existing algorithms, you still need even more in order to allow for error correction.
The third is that although there are theoretical models to show how to attack some of our existing algorithms, actually making them work is significantly harder than you or I might expect. In fact, some of the attacks may turn out to be infeasible, or just take more years to perfect that we’d worried about.
The fourth is that there are clever people out there who are designing quantum-computation resistant algorithms (sometimes referred to as “post-quantum algorithms”) that we can use, at least for new encryption, once they’ve been tested and become widely available.
All-in-all, in fact, there’s a strong body of expert opinion that says that we shouldn’t be overly worried about quantum computing breaking our encryption in the next 5 or even 10 years.
And some bad news
It’s not all rosy, however. Two issues stick out to me as areas of concern.
- People are still designing and rolling out systems which don’t consider the issue. If you’re coming up with a system which is likely to be in use for ten or more years, or which will be encrypting or signing data which must remain confidential or attributable over those sorts of periods, then you should be considering what the possible impact of quantum computing may have on your system.
- some of the new, quantum-computing resistant algorithms are proprietary. This means that when you and I want to start implementing systems which are designed to be quantum-computing resistant, we’ll have to pay to do so. I’m a big proponent of open source, and particularly of open source cryptography, and my big worry is that we just won’t be able to open source these things, and worse, that when new protocol standards are created – either de facto or through standards bodies – they will choose proprietary algorithms that exclude the use of open source, whether on purpose, through ignorance, or because few good alternatives are available.
What to do?
Luckily, there are things you can do to address both of the issues above. The first is to think and plan, when designing a system, about what the impact of quantum computing might be on it. Often – very often – you won’t actually need to implement anything explicit now (and it could be hard to, given the current state of the art), but you should at least embrace the concept of crypto-agility: designing protocols and systems so that you can swap out algorithms if required.
The second is a call to arms: get involved in the open source movement, and encourage everybody you know who has anything to do with cryptography to rally for open standards and for research into non-proprietary, quantum-computing resistant algorithms. This is something that’s very much on my to-do list, and an area where pressure and lobbying is just as important as the research itself.
1 – I think it’s fair to call it the first electronic, programmable computer. I know there were earlier non-programmable ones, and that some claim ENIAC, but I don’t have the space or the energy to argue the case here.
2 – no.
3 – see . Don’t get me wrong, by the way – I grew up near Weston-super-Mare, and it’s got things going for it, but it’s not Mayfair.
4 – and if a quantum physicist says that something’s hard, then, to my mind, it’s hard.
5 – and I’m assuming that neither of us is a quantum physicist or mathematician.
6 – I’m definitely not.
7 – and not just for quantum-computing reasons: there’s a good chance that some of our existing classical algorithms may just fall to other, non-quantum attacks such as new mathematical approaches.
4 thoughts on “Will quantum computing break security?”
On this very subject, this presentation by Daniel J. Bernstein and Tania Lange at this year’s (well last year’s, technically) Chaos Congress is well-worth watching: