By Bonaventure Ogeto · Published · Last verified:
The History of Cryptography: Caesar, Enigma and the Birth of Modern Encryption
The short answer
Cryptography began with hand ciphers such as Caesar’s letter shift, which frequency analysis, set out by the Baghdad scholar Al-Kindi, taught codebreakers to beat. Renaissance writers added several alphabets, the Second World War turned the contest into a machine race around Enigma and Bletchley Park, and computers brought DES in 1977[1] and, at almost the same time, public-key cryptography.
Source: Mctaba Labs, “The History of Cryptography: Caesar, Enigma and the Birth of Modern Encryption”, last verified 4 December 2026, mctaba.com/learn/cryptography/history-of-cryptography
Where does the history of cryptography begin?
Cryptography is the craft of writing a message so that only the intended reader can understand it. For most of its history that meant a cipher: a method for scrambling letters, plus a secret, the key, that tells the reader how to unscramble them. The original message is the plaintext; the scrambled version is the ciphertext.
One of the clearest early accounts comes from Rome. In his Life of Julius Caesar, the historian Suetonius says that when Caesar had anything confidential to say “he wrote it in cipher”[2], and that a reader “must substitute the fourth letter of the alphabet, namely D, for A, and so with the others”[2].
That is a substitution cipher, in which every letter is swapped for another by a fixed rule. Caesar's rule was a shift of three places[2]: A became D, B became E, and so on. Its weakness is the size of the key: there are only as many possible shifts as letters in the alphabet, so anyone can try them all with pencil and paper.
What are the main milestones in the history of cryptography?
From hand ciphers to the first post-quantum standards, with each date linked to its source:
| When | Milestone | Why it matters |
|---|---|---|
| Ancient Rome | Suetonius describes Caesar's letter-shift cipher | The classic substitution cipher |
| Ninth century[3] | Al-Kindi, a Baghdad scholar, sets out frequency analysis | Simple substitution can be broken by counting letters |
| Before 1470[4] | Alberti's treatise proposes an encrypting disk | Switching alphabets inside one message |
| 1553[4] | Bellaso publishes a cipher keyed by a passphrase | The password as the key |
| 1586[4] | Vigenère publishes the cipher that now carries his name | The best-known polyalphabetic cipher |
| December 1932[5] | Polish cryptologists first decrypt Enigma messages | The first break of the German machine cipher |
| July 1939[6] | Poland shares its Enigma work with Britain and France | The basis of Bletchley Park's early success |
| March 1940[7] | The first Turing-Welchman Bombe starts work at Bletchley Park | Machines test Enigma settings at speed |
| February 1944[8] | Colossus is working at Bletchley Park | Electronic computing joins codebreaking |
| 1969 to 1974[9] | Ellis, Cocks and Williamson work out public-key methods in secret at GCHQ | Kept classified until 1997[9] |
| November 1976[10] | Diffie and Hellman publish New Directions in Cryptography | Public-key ideas, in the open |
| January 1977[1] | The US publishes DES as a federal standard | A public, standard cipher for computers |
| February 1978[11] | Rivest, Shamir and Adleman publish RSA | A working public-key system for encryption and signatures |
| 1985[12] | Koblitz and Miller propose elliptic curve cryptography | The family behind modern elliptic-curve keys |
| 1994[13] | Peter Shor publishes quantum algorithms for factoring and discrete logarithms | A future quantum computer could break public-key cryptography |
| October 2000[14] | Rijndael wins NIST's open competition | A cipher chosen in public, after outside analysis |
| November 2001[15] | AES is published as FIPS 197 | Today's standard symmetric cipher |
| May 2005[16] | The last DES standard is withdrawn | An old standard formally retired |
| August 2024[17] | NIST publishes its first post-quantum standards | Replacements for quantum-vulnerable public-key algorithms |
How did Al-Kindi break ciphers with frequency analysis?
Any cipher that swaps each letter the same way every time leaves a fingerprint. In every language some letters turn up far more often than others. Count which symbols appear most in a ciphertext, match them to the most common letters of the language, and the message starts to give itself away. That method is frequency analysis.
One of the earliest known explanations of it comes from Al-Kindi, a scholar who lived from about 801 to 873[3], completed his studies in Baghdad and was appointed by the Caliph al-Ma'mun to the House of Wisdom[3]. A peer-reviewed history of letter counting names his Manuscript on Deciphering Cryptographic Messages as perhaps the first exposition of frequency analysis[18], and notes that he based his letter counts on 7 pages totalling 3,667 letters[18] of text.
The lesson: a cipher that replaces each letter the same way everywhere cannot hide the statistics of the language underneath.
How did Renaissance ciphers try to beat frequency analysis?
The fix was to use several substitution alphabets in one message and switch between them while writing. The same plaintext letter then turns into different ciphertext letters in different places, which flattens the counts that frequency analysis relies on. These are polyalphabetic ciphers, and three names stand out:
- Leon Battista Alberti wrote a treatise on ciphers before 1470[4], according to a history of these ciphers, proposing an encrypting disk and ways to use it. The book was kept secret for about a century[4] and printed in Venice only in 1568[4].
- Giovan Battista Bellaso published a polyalphabetic cipher in Venice in 1553[4] that, by the same account, was the first to use what is now called a password or passphrase as the key.
- Blaise de Vigenère published the best-known polyalphabetic cipher in 1586[4]. It carries his name, but he himself named “un certain Belasio”[4], a certain Bellaso, as the inventor of its table.
In a keyword cipher of this kind, each letter of the keyword says how far to shift the matching letter of the message, and the keyword starts again when it runs out.
The weakness is that the keyword repeats. Patterns come back at regular intervals, and an analyst who works out the keyword's length can split the ciphertext into several simple shift ciphers and count letters again. Modern ciphers answer this with long, random keys and designs that leave no such patterns.
How was Enigma broken, and what did Poland contribute?
In the twentieth century ciphers moved into machines. Enigma, the cipher machine used by the German military, scrambled each letter through rotating wheels so the substitution changed with every key press: a polyalphabetic cipher with an enormous number of alphabets.
The first break came from Poland. Poland's Foreign Intelligence Agency says the Polish Cipher Bureau's cryptologists, among them Marian Rejewski, Henryk Zygalski and Jerzy Różycki, first decrypted Enigma messages in Warsaw on 31 December 1932[5], helped by material French intelligence had brought to Warsaw earlier that month. The Poles went on to build the bomba kryptologiczna, which GCHQ calls the first electromechanical device used to support cryptanalysis[6].
In July 1939[5], Polish, French and British cryptanalysts met outside Warsaw to pool what they knew; GCHQ dates the Pyry Forest meeting to 25 and 26 July 1939[6]. The British and French learned that the Poles were far ahead[6] of them. Poland gave them a copy of the Enigma device, along with Zygalski's sheets and Rejewski's bombs.
Bletchley Park, Britain's wartime codebreaking centre, says this Polish work was “of paramount importance to the British codebreaking effort in the early days of the war”[19], and that Zygalski's Netz technique formed the basis of the successful British attack on Enigma in January 1940[19].
In January 1940[6] Alan Turing, then working with Dilly Knox at Bletchley Park, travelled to Paris to meet the evacuated Polish cryptanalysts. GCHQ says his conversations with Rejewski were fundamental[6] to the thinking behind the first British Bombe. The Turing-Welchman Bombe was an electro-mechanical device used to break Enigma messages. According to The National Museum of Computing, the first one, Victory, started codebreaking at Bletchley Park on 14 March 1940[7], and 211 Bombe machines[7] were deployed by the end of the war.
Enigma's lesson still applies: a cipher can look impossibly complex and still fall to better mathematics plus machines that test possibilities at speed. That is why modern algorithms are published and attacked in the open for years before anyone trusts them.
Was Colossus built to break Enigma?
No. Colossus was built for a different German cipher. The National Museum of Computing says it was made to help decipher Lorenz-encrypted (Tunny) messages[8], and GCHQ says those were strategic messages between the most senior German generals. Enigma was the Bombes' job.
Colossus was working at Bletchley Park by early February 1944[8], and by the end of the war ten Colossus computers[8] had helped decrypt 63 million characters[8] of German communications. The museum calls it the world's first electronic computer; GCHQ says it is considered by many to be the first digital computer[20], and that its existence was kept secret for about six decades[20].
Colossus marks the point where codebreaking became work for electronic computers. Every cipher designed since has had to assume the attacker owns one.
How did computers change encryption after the war?
Once computers existed, code makers and code breakers both used them. In the United States, the National Bureau of Standards published the Data Encryption Standard (DES) as FIPS 46 on 15 January 1977[1].
DES is a symmetric cipher: the same secret key encrypts and decrypts. Instead of swapping single letters, it scrambles fixed-size blocks of bits through repeated rounds of substitution and shuffling. It was also a published standard, so outside experts could test it in the open.
DES served for decades. Its final revision, FIPS 46-3[16], which also covered Triple DES, was withdrawn on 19 May 2005[16].
Its successor was chosen in an open contest. On 2 October 2000[14] the US Commerce Department named Rijndael, designed by the Belgian cryptographers Joan Daemen and Vincent Rijmen, the winner of NIST's three-year competition[14], after narrowing the field from 15 formulas to five[14]. It became the Advanced Encryption Standard (AES), published as FIPS 197 on 26 November 2001[15] with three key sizes: AES-128, AES-192 and AES-256. NIST updated the document in May 2023[15] without changing the algorithm.
Symmetric ciphers left one problem unsolved: both sides need the same key before they can talk. Armies could send keys by courier; strangers on a computer network could not. The IEEE's record of this period calls key distribution a major impediment[9] to secure communication. How symmetric and asymmetric encryption differ is covered in symmetric vs asymmetric encryption, hashing and digital signatures.
How did public-key cryptography solve the key distribution problem?
In November 1976[10] Whitfield Diffie and Martin Hellman published New Directions in Cryptography, which announced that the field stood “on the brink of a revolution in cryptography”[10]. They described two ideas. In a public key cryptosystem, one key encrypts and a different key decrypts, and working out the decryption key from the encryption key is computationally infeasible. In public key distribution, two parties agree on a shared secret while talking entirely in the open.
At MIT in 1977[21], Ron Rivest, Adi Shamir and Leonard Adleman found a practical way to do the first. Their system, RSA, appeared in Communications of the ACM in February 1978[11].
The British had been there first, in secret. GCHQ says James Ellis conceived of “non-secret encryption”[22], now known as public-key cryptography. The UK's National Cyber Security Centre dates his idea to 1970[23], while the IEEE Milestone record says he had shown it was possible by the end of 1969[9]. Clifford Cocks, who joined GCHQ in 1973[9], devised the system now known as RSA, and Malcolm Williamson found a key exchange method now known as Diffie-Hellman; the IEEE record dates Williamson's method to 1974[9]. The work stayed classified. Cocks was allowed to speak about it publicly only in December 1997[9], at a conference in Cirencester.
Elliptic curves came next. In 1985[12], Neal Koblitz and Victor Miller both proposed building cryptographic schemes on elliptic curves over finite fields, and Miller's paper at CRYPTO '85[24] proposed an elliptic-curve version of the Diffie-Hellman key exchange. How these systems work, and why every secure website depends on them, is explained in public-key cryptography explained.
What comes after public-key cryptography?
Each era's ciphers met a new kind of attack: letter counting for Caesar's shift, pattern hunting for repeating keywords, machines for Enigma. The next one was described in 1994[13], when Peter Shor gave quantum algorithms that efficiently factor large numbers and find discrete logarithms, the problems underneath RSA, Diffie-Hellman and elliptic curves. NIST says a quantum computer able to run them would render public-key systems built on those problems impotent[25].
No one knows when such a machine will exist; NIST says experts' estimates range from a few years to a few decades[26]. The answer is to change the mathematics before the attack arrives, and NIST published its first post-quantum standards, algorithms designed to resist quantum computers, on 13 August 2024[17]. The move is urgent because migrations take years and the official warnings have grown louder, not because any standard algorithm has been publicly broken. In December 2026[27] US agencies told industry and government to “expeditiously upgrade our digital infrastructure and cybersecurity capabilities”[27].
Read on: what is post-quantum cryptography explains the new algorithms in plain English, and how quantum computers could break RSA and elliptic curve encryption covers the attack itself. The cryptography series hub maps the whole story.
Frequently asked questions
- Who invented cryptography?
- No single person. Secret writing is ancient, and one of the clearest early descriptions is the Roman historian Suetonius’s account of Julius Caesar’s cipher, which replaced each letter with the one three places further along the alphabet[2]. Modern, computer-based cryptography took shape after the Second World War.
- Did Alan Turing break Enigma on his own?
- No. Polish cryptologists, among them Marian Rejewski, first decrypted Enigma messages in December 1932[5] and shared their methods and a copy of the machine with Britain and France in July 1939[5]. Turing’s Bombe built on that work: GCHQ says his conversations with Rejewski were fundamental[6] to its design.
- How long did Britain keep its codebreaking and cryptography secret?
- For decades. GCHQ says the existence of Colossus was kept secret for about six decades[20], and the IEEE Milestone record says GCHQ’s public-key discoveries were kept secret until 1997[9], long after Diffie, Hellman and the RSA team had published theirs.
- Who really invented public-key cryptography?
- GCHQ got there first, in secret: James Ellis, Clifford Cocks and Malcolm Williamson worked out the ideas, which stayed classified until 1997[9]. Diffie and Hellman published in November 1976[10] and Rivest, Shamir and Adleman published RSA in February 1978[11], so the open world built on their papers.
- Is DES still safe to use?
- No. NIST withdrew the last revision of the standard, FIPS 46-3, on 19 May 2005[16]. For symmetric encryption use AES, published as FIPS 197 in November 2001[15].
- What does the history of cryptography teach about quantum computers?
- That ciphers fall to new kinds of attack, so the time to move is before the attack works. Peter Shor showed in 1994[13] that a large quantum computer could break RSA and elliptic-curve systems. No one knows when such a machine will exist, and NIST published replacement standards in August 2024[17].
Sources
- [1] NIST Computer Security Resource Center, 15 January 1977, checked 4 December 2026
- [2] LacusCurtius (Bill Thayer, University of Chicago), Loeb Classical Library translation, 1913, 1913, checked 4 December 2026
- [3] MacTutor History of Mathematics, University of St Andrews, November 1999, checked 4 December 2026
- [4] Paolo Bonavoglia, Proceedings of HistoCrypt 2020 (Linköping University Electronic Press), 2020, checked 4 December 2026
- [5] Foreign Intelligence Agency (Agencja Wywiadu), Poland, checked 4 December 2026
- [6] GCHQ, 21 July 2020, checked 4 December 2026
- [7] The National Museum of Computing, checked 4 December 2026
- [8] The National Museum of Computing, checked 4 December 2026
- [9] IEEE History Center, Engineering and Technology History Wiki, 5 October 2010, checked 4 December 2026
- [10] IEEE Transactions on Information Theory (copy on Martin Hellman's Stanford page), November 1976, checked 4 December 2026
- [11] Communications of the ACM (scan on Ronald Rivest's MIT page), February 1978, checked 4 December 2026
- [12] Standards for Efficient Cryptography Group (SEC 1 v2.0, Certicom Research), 21 May 2009, checked 4 December 2026
- [13] arXiv, 30 August 1995, checked 4 December 2026
- [14] NIST, 2 October 2000, checked 4 December 2026
- [15] NIST Computer Security Resource Center, 26 November 2001, checked 4 December 2026
- [16] NIST Computer Security Resource Center, 25 October 1999, checked 4 December 2026
- [17] NIST CSRC, 2 December 2026, checked 4 December 2026
- [18] Bernard Ycart, Historiographia Linguistica 40(3), 2013, pp. 303-329 (author's arXiv version), 2013, checked 4 December 2026
- [19] Bletchley Park Trust, 1 September 2019, checked 4 December 2026
- [20] GCHQ, 18 January 2024, checked 4 December 2026
- [21] MIT News, 30 April 2003, checked 4 December 2026
- [22] GCHQ, checked 4 December 2026
- [23] National Cyber Security Centre (UK), checked 4 December 2026
- [24] Springer (Advances in Cryptology, CRYPTO '85 Proceedings), 1986, checked 4 December 2026
- [25] NIST, April 2016, checked 4 December 2026
- [26] NIST, 27 February 2026, checked 4 December 2026
- [27] CISA, 2 December 2026, checked 4 December 2026
