Shor’s Algorithm and RSA Encryption
By Louise E. Turner
RSA Basics
The biggest quantum threat to cyber security is the possibility of a powerful quantum computer breaking RSA encryption. RSA encryption is a widely utilized encryption algorithm that is used to begin over 90% of internet connections during the SSL handshake (Forbes). For years, RSA was thought to be computationally unbreakable, so why do experts believe that a quantum computer could change that?
What makes RSA so secure is that the public keys can end up being 617 decimal digits long! Numbers this large are computationally impossible for a classical computer to find the prime factors of.
Shor’s Algorithm
In 1994, mathematician Peter Shor developed a quantum factoring algorithm that, when executed by a powerful enough quantum computer, could theoretically break RSA encryption. Shor’s algorithm relies heavily on the Quantum Fourier Transform (QFT). A classical Fourier Transform can be used to dissect waveforms into their own “recipes” that contain the waves used to create the final combination of waves (Better Explained). Fourier Transforms are used to pick out trouble frequencies to be cancelled out by noise cancelling headphones.
Is Shor’s Algorithm Feasible?
Although Shor’s algorithm is incredibly powerful, RSA has not been broken yet due to the current hardware restrictions of quantum computers. To date, Shor’s algorithm has only been used with a quantum computer to successfully factor the number 15 into its prime factors of 3 and 5. This was accomplished by IBM in 2001 on a 7-qubit quantum computer and was an impressive feat for its time (IBM). As of 2024, the D-Wave Advantage quantum annealer has over 5000 qubits, so why haven’t we cracked RSA yet? The reason is not a matter of the quantity qubits but is a matter of stable qubits. Quantum computers are prone to noise and error, making them difficult to extract answers from. Although quantum computing has come a long way since 2001, a reliable way to construct vast amounts of stable qubits has not yet been devised.
Experts are conflicted regarding the timelines of quantum progression. Some believe that Shor’s algorithm will never be feasible, while others think it’s only a matter of years until RSA is broken. Regardless of feasibility and timeline, Shor’s algorithm is a great demonstration of quantum advantage, and the opportunities quantum computing provides us.