← Back to section · Foundations of Cryptography
1976: The Public-Key Revolution — Diffie, Hellman, and the Birth of RSA
In 1976 Diffie and Hellman published 'New Directions in Cryptography,' proposing that confidential communication could be established with no pre-shared secret; the next year RSA supplied the first workable public-key scheme. The thousand-year problem of key distribution had, at last, a mathematical solution.
Classical cryptography had one knot it never untied: the two parties had to share a secret key in advance, and delivering that key itself required a secure channel. In the age of the telegraph and radio, this meant couriers, diplomatic pouches, and stacks of codebooks. In the mid-1970s, a few researchers outside the establishment posed a question that sounded almost paradoxical: could two people who have never met agree, over a completely public channel and in full view of an eavesdropper, on a key that only they know?
“New Directions in Cryptography”
In November 1976, Whitfield Diffie and Martin Hellman of Stanford University published “New Directions in Cryptography” in the IEEE Transactions on Information Theory. The paper did three things. First, it articulated the concept of public-key cryptography: each user holds a pair of keys, the public key may be announced to the world while the private key stays secret, and a message encrypted with the public key can be decrypted only with the private key. Second, it sketched the idea of digital signatures. Third, it gave the first concrete protocol — what is now called Diffie-Hellman key exchange: each party chooses a secret exponent and they exchange powers of a group element over the public channel; an eavesdropper faces the discrete logarithm problem, infeasible to reverse, while both parties can each compute the same shared secret.
Ralph Merkle independently proposed negotiating a key over a public channel with his “Merkle puzzles” at about the same time; his paper appeared later, but his contribution is now recognized. Even more important was the methodological turn: the paper appeared in an open journal. From then on, cryptography was no longer the hereditary craft of intelligence agencies, but a public science anyone could join, challenge, and advance.
RSA: the first complete public-key scheme
The Diffie-Hellman scheme solved key exchange but did not by itself provide public-key encryption. In 1977, Ronald Rivest, Adi Shamir, and Leonard Adleman at MIT published the scheme named after their initials, RSA: choose two large primes and multiply them to form a modulus; encryption is modular exponentiation, and decryption depends on a private exponent that only someone who knows the prime factors can compute. Its security rests on the integer factorization problem — splitting the product of two primes back apart is, under classical computation, prohibitively hard. RSA also naturally runs in reverse: “encrypting” with the private key is a signature, verified with the public key.
Its route to the public was unusual: it first appeared in Martin Gardner’s column in the August 1977 issue of Scientific American, where the 129-decimal-digit challenge number RSA-129 was not factored until 1994, by a worldwide distributed computing effort. RSA Laboratories’ subsequent challenges became a yardstick for progress in factorization. In 1997, after U.S. controls were relaxed, the RSA patent (granted in 1983) was released shortly before its expiry in 2000, and public-key cryptography was left with no legal threshold at all.
A parallel world: GCHQ’s secret pioneers
At the end of 1997, Britain’s Government Communications Headquarters (GCHQ) declassified a set of documents revealing a parallel story: in 1970 James Ellis had written down the concept of “non-secret encryption”; in 1973 Clifford Cocks produced a scheme equivalent to RSA; in 1974 Malcolm Williamson independently derived the same method as Diffie-Hellman. All of the work was classified, never published, and never actually deployed.
The episode shows that by the 1970s the public-key idea was “ripe enough to be invented repeatedly.” But history credits the revolution to the open side, for a practical reason: only published ideas can be examined by peers, implemented by engineers, and adopted by industry. Secrecy won GCHQ the head start, and lost it the ecosystem.
From paper to industry: RSA the company and the trust infrastructure
Publication was followed by a long landing. In 1982 Rivest, Shamir, and Adleman founded RSA Data Security to sell the algorithm to industry as a toolkit; RSA was patented in the United States in 1983 (the patent expired in 2000). The patent both rewarded the inventors and, to a considerable extent, slowed the spread of public-key technology — the PGP dispute of the 1990s stemmed in part from licensing.
The deeper problem was this: a public key can be published, but how do I know it really belongs to its claimed owner? The answer was the certificate: a trusted third party (a certificate authority, or CA) signs the binding between an identity and a public key. The X.509 certificate standard and the PKI system that grew around it translated the mathematics of 1976 into the trust infrastructure of the Internet. When Netscape shipped the SSL protocol in 1995 and put the RSA handshake into the browser, ordinary users saw the little padlock in the address bar for the first time — only then did the public-key revolution truly reach the public.
Why 1976: the conditions had ripened
That the public-key idea appeared when it did was no accident. Shannon’s 1949 theory had already given secrecy systems a mathematical language; computational complexity theory took shape in the early 1970s, making “easy to compute, hard to invert” one-way functions an object that could be discussed seriously — and Diffie arrived at the key-exchange protocol precisely by way of the trapdoor one-way function. Michael Rabin’s 1979 scheme based on quadratic residues and Robert McEliece’s 1978 scheme based on error-correcting codes followed in quick succession, evidence that the whole field had been one step away. It is worth noting that McEliece’s code-based scheme was sidelined at the time for its oversized keys, yet returned to the spotlight four decades later as a quantum-resistant candidate — the embers of the 1976 wave of invention are still glowing.
The consequences of the revolution
Public-key cryptography redrew the map of the field: key distribution changed from a logistics problem into a mathematics problem; digital signatures gave electronic documents verifiable origin and integrity for the first time; certificates and PKI built trust into infrastructure. Every HTTPS handshake today still re-enacts the idea of 1976 — negotiating secrets by mathematics over a public channel. And the story has a second half: in 1994 Peter Shor proved that a quantum computer can efficiently solve both discrete logarithms and integer factorization, and the two pillars of the 1976 revolution were placed under a suspended sentence together. The entire agenda of post-quantum cryptography is the search for new foundations for that revolution.
Tags: public-key cryptographyDiffie-HellmanRSAhistory of cryptography