Who invented RSA? The public and secret histories
Suppose somebody wants to send you a private message, but you have never met to agree on a secret key. If you have to send that key across the same channel as the message, you are back where you started. Public-key cryptography offers a different way in: publish one key, keep another private.
At GCHQ, James Ellis proposed the idea of encryption without sharing the secret in advance. Clifford Cocks found a mathematical way to do it in 1973. Their work was classified and was not announced publicly until 1997.
Meanwhile, Whitfield Diffie and Martin Hellman published the public-key idea in 1976. Ronald Rivest, Adi Shamir and Leonard Adleman developed RSA independently of the classified work; their journal paper appeared in 1978. Take the first letter of each surname and you get RSA.
How does RSA encryption work?
Imagine leaving an open padlock where anyone can pick it up. Someone can use it to lock a box for you without owning the key that opens it. In the analogy, the open padlock is public and the opening key stays with you. With RSA, the lock and key are mathematical, not physical.
The public key includes a large number made by multiplying two primes. For a toy example, 17 multiplied by 23 gives 391. The multiplication takes one line. Given only 391, you have to work backwards to find the factors. That is manageable on paper here; for RSA-sized numbers, the best known ordinary-computer methods are far more demanding. The example is about factoring, not a working encryption scheme.
Where does the message fit? RSA works on an encoded number. To encrypt it, the public operation raises it to a power and keeps the remainder after division by the large public number. The private key lets the recipient reverse that operation. The primes are what make it possible to work out that private key; they are not the message.
Public and private keys can do more than keep things secret. For a digital signature, the private key is used to sign and the public key to check the signature. That is a different job from encryption: a signed message need not be hidden.
Could quantum computers break RSA?
In 1994, Peter Shor showed that a quantum computer could find prime factors efficiently as the input gets larger. It would not just run the same classical calculation at a higher clock speed. His algorithm turns factoring into a problem about finding a repeating pattern, then uses a quantum calculation to get information about that pattern.
Finding RSA’s hidden prime factors would undermine both its encryption and its signatures. But an algorithm on paper is not a capable machine. Real qubits pick up noise and lose coherence, making it harder to preserve the phase relationships an algorithm needs. A long calculation needs reliable logical qubits, which can be built by using many physical qubits together with error correction.
That is why a headline qubit count is not enough to tell you what a machine can do. You also need to know how accurately it runs operations and how long a calculation it can sustain. A small demonstration is not evidence that real-world RSA keys are being broken.
The A-level physics: where interference comes in
A qubit is a physical system with two reference states, labelled 0 and 1. Some machines use two energy levels of a superconducting circuit and control them with microwave pulses. If you have studied the photon model and energy levels, the familiar idea is that a transition between levels has a characteristic frequency.
A qubit can be prepared in a superposition. Measuring it in the 0-and-1 basis gives one result, not a list of both. What makes the superposition different from a coin toss is that its components have amplitudes with relative phase. Operations can bring those amplitudes together so that the phase affects the chances of the final outcomes.
Think of Young’s double-slit experiment. At a point where the waves arrive in phase, their displacements reinforce; where equal waves arrive half a cycle apart, they cancel. In a quantum calculation it is probability amplitudes that add before the probability is worked out. A change of relative phase can therefore change which outcomes you are likely to measure.
That is the useful connection to Shor’s algorithm: arrange the calculation so the repeating pattern leaves a signal in the measurement statistics. It is not a matter of trying every factor and reading every answer at once. The AQA AS interference worksheet lets you practise the underlying idea with ordinary waves first.
What is post-quantum cryptography?
Post-quantum cryptography, or PQC, is designed to resist known attacks using classical or quantum computers. Instead of making the RSA numbers a bit bigger, it changes the mathematical problem. For example, the standard called ML-KEM relies on the difficulty of recovering hidden information from specially structured equations with small errors added. That is a different problem from separating a product into primes.
NIST published its first three final PQC standards in 2024. ML-KEM helps two sides establish a shared secret, which can then be used with symmetric encryption to protect the data. ML-DSA and SLH-DSA are for digital signatures. They do different jobs; “post-quantum encryption” is often used as shorthand for the wider family.
Why start switching before the hardware is ready? Some information needs to stay private for years. A future advance could expose old copies of traffic protected by a vulnerable key-establishment method. The UK’s National Cyber Security Centre gives organisations a target of 2035 to complete their transition. That is a planning date, not a prediction of when RSA will break.
One last distinction: quantum key distribution uses quantum signals to help establish keys. It is not another name for PQC. A photonics engineer might work on the light sources and detectors for a quantum link; an ordinary computer running ML-KEM needs neither.
Key words
Quick pupil questions
Can a quantum computer break RSA encryption today?
As of 5 December 2026, no public demonstration has shown a quantum computer breaking RSA-2048. Shor’s result tells us what a sufficiently capable machine could do, not what today’s machines can do.
Did AI break RSA in December 2026?
The research behind the headlines was not a demonstration of broken RSA-2048. It studied different maths behind post-quantum schemes. On 1 December, the UK’s National Cyber Security Centre said the theoretical result did not threaten deployed ML-KEM or ML-DSA.
Is all encryption at risk from Shor’s algorithm?
No. It threatens public-key systems such as RSA and elliptic-curve cryptography. It does not solve the different problem of finding the key for a symmetric cipher such as AES in the same way.
Does post-quantum cryptography require a quantum computer?
No. It runs on ordinary computers. “Post-quantum” describes the threats it is designed to withstand, not the hardware it needs.