Cryptography began with hidden writing in ancient Egypt around 1900 BC, then moved through Caesar and Vigenere ciphers, the Enigma machine in World War II, and the public-key revolution of the 1970s. DES became the first US federal cipher standard in 1977, RSA followed in 1977, and AES replaced DES in 2001. In August 2024 NIST approved its first post-quantum standards, FIPS 203, 204 and 205.
Key takeaways
- Cryptography is about 4,000 years old, but modern cryptography is barely 100 years old.
- The 1970s changed everything: DES, Diffie-Hellman key exchange and RSA made encryption public and practical.
- AES has held since 2001, and NIST's 2024 post-quantum standards prepare for quantum computers.
Cryptography is older than the alphabet as we know it, yet the cryptography that protects your bank login is barely fifty years old. Its history is a race: every code that looked unbreakable eventually fell, and every break forced a smarter design.
What is cryptography?
Cryptography is the practice of encrypting information so only the intended recipient can read it. The word comes from Greek words for hidden writing, and the goal has stayed the same for 4,000 years.
Most cryptosystems start with plaintext, an unencrypted message, and turn it into ciphertext using one or more keys. The recipient uses the correct key to turn it back into plaintext. If the algorithm is strong, intercepted ciphertext is useless to anyone without the key.
Modern cryptography does more than hide messages. It also proves who sent a message, proves it was not changed, and lets strangers agree on a shared secret over a public channel. That last trick is what makes the web work, and it is only fifty years old. IBM's history of cryptography traces that shift from ancient hidden writing to modern digital trust.
How did cryptography begin in the ancient world?
The earliest known example dates to around 1900 BC, when non-standard hieroglyphs were carved into the tomb of the Egyptian nobleman Khnumhotep II. The purpose was probably dignity and form, not secrecy, but it is the oldest known transformation of a text.
Around 1500 BC, a Mesopotamian scribe hid a pottery glaze recipe in enciphered writing. That is the first known use of cryptography to protect a trade secret. Around 650 BC, Spartans used the scytale, a strip of leather wound around a wooden staff, to scramble military messages. The size of the staff acted as the key.
Julius Caesar used the cipher that still carries his name around 100 to 44 BC. Each letter was shifted by a fixed number of places, so with a shift of 3, A became D and B became E. It is a substitution cipher, and it is easy to break once you know the system, because the pattern is fixed.
What changed in medieval cryptography?
Around 800 AD, the Arab mathematician Al-Kindi invented frequency analysis, one of the great breakthroughs in cryptanalysis. In any language, some letters appear far more often than others, so counting letter frequencies in ciphertext reveals the substitution key.
Frequency analysis broke every simple substitution cipher, including the Caesar cipher. It forced cipher designers to use more than one alphabet, so the same plaintext letter could encrypt to different ciphertext letters.
Leon Battista Alberti explored multi-alphabet ciphers in 1467, and Giovan Battista Bellaso published the cipher later misattributed to Blaise de Vigenere around 1553. The Vigenere cipher uses a keyword to choose among several shifted alphabets, and it resisted simple frequency analysis for about 300 years. It was finally broken in 1863 by Friedrich Kasiski.
The lesson repeated through history: a cipher called unbreakable usually means nobody has found the break yet. You can see the same idea in modern password practice with our free password generator, which creates long random secrets instead of relying on a clever pattern.
How did machines change cryptography?
Electricity changed cryptography in the early 20th century. In 1917, Edward Hebern built the first rotor machine, which combined electrical circuits with typewriter parts to scramble messages automatically. Each key press rotated a disc and changed the substitution table.
In 1918, German engineer Arthur Scherbius developed the Enigma machine, a more advanced rotor machine. It used three or more rotors that turned at different rates, and its settings were the key. Germany used it heavily before and during World War II, and considered it suitable for top-secret messages.
Enigma fell because its settings had to be shared in advance, and those settings could be recovered. Polish codebreakers broke it first in the 1930s, and British mathematicians at Bletchley Park, including Alan Turing, built on that work with the Bombe machine. Turing's work also laid foundations for modern computing.
Claude Shannon then put cryptography on a mathematical footing. His work on information theory in the 1940s showed what makes a cipher strong in principle, and it is why he is often called the father of mathematical cryptography.
What was the public-key revolution of the 1970s?
Until the 1970s, cryptography had one hard problem: both sides needed the same secret key, and sharing that key safely was itself a security problem. Two papers in 1976 and 1977 solved it in different ways.
In 1976, Whitfield Diffie and Martin Hellman published Diffie-Hellman key exchange. It lets two people agree on a shared secret over a public channel, without ever sending the secret itself. That idea made secure communication between strangers possible for the first time.
In 1977, Ron Rivest, Adi Shamir and Leonard Adleman introduced RSA. RSA uses a public key to encrypt and a private key to decrypt, based on the difficulty of factoring a product of two large primes. It also made digital signatures practical: a private key can sign, and anyone with the public key can verify.
IBM's Lucifer cipher became DES, the Data Encryption Standard, published as a federal standard in 1977. DES was the first cipher certified by the US National Institute of Standards and Technology, then called the National Bureau of Standards, for government use. Its 56-bit key was strong for the 1970s, but computing power caught up, and by 1997 DES was broken by exhaustive search.
How did AES and TLS become the standards we use today?
In 1997, NIST opened a public competition for a successor to DES. It received 50 submissions, and in 2000 it selected Rijndael, designed by Joan Daemen and Vincent Rijmen. AES was published as FIPS 197 in 2001, with 128-bit blocks and keys of 128, 192 or 256 bits.
AES is a symmetric cipher: the same key encrypts and decrypts. It is the workhorse of modern encryption, used in Wi-Fi, disk encryption, VPNs and TLS, the protocol that puts the padlock in your browser. TLS itself evolved from SSL in the 1990s to TLS 1.3, published as RFC 8446 in 2018, which removed older, weaker options including static RSA key exchange.
Hash functions followed a similar path. SHA-1, published in 1995, was weakened by collision attacks, so NIST ran another competition and selected SHA-3 in 2012, published as FIPS 202. You can try a hash yourself with our free hash generator to see how a tiny change in input changes the whole output.
| Year | Event | Why it mattered |
|---|---|---|
| 1900 BC | Egyptian hieroglyphs | Earliest known transformed text |
| 800 AD | Al-Kindi frequency analysis | Broke simple substitution ciphers |
| 1553 | Vigenere cipher published | First widely used multi-alphabet cipher |
| 1918 | Enigma machine | Rotor machine, broken in World War II |
| 1976 | Diffie-Hellman | Key exchange without a shared secret |
| 1977 | DES and RSA | First federal cipher standard; first public-key system |
| 2001 | AES (FIPS 197) | Replaced DES, still the standard today |
| 2018 | TLS 1.3 (RFC 8446) | Modern, faster, safer web encryption |
| 2024 | FIPS 203, 204, 205 | First post-quantum standards |
What is post-quantum cryptography?
Quantum computers threaten RSA and elliptic-curve cryptography because a large quantum computer could factor large numbers and solve discrete logarithms far faster than a classical computer. That is the threat behind Shor's algorithm, published in 1994.
Post-quantum cryptography uses different mathematics that quantum computers are not known to break. NIST began its post-quantum standardization effort in 2016 with an open call, and 82 teams from 25 countries submitted candidates.
On 13 August 2024, NIST approved its first three post-quantum standards. FIPS 203 specifies ML-KEM, a key-encapsulation mechanism derived from CRYSTALS-Kyber, for establishing shared secrets. FIPS 204 specifies ML-DSA, derived from CRYSTALS-Dilithium, for digital signatures. FIPS 205 specifies SLH-DSA, derived from SPHINCS+, as a hash-based signature backup. NIST's announcement lists all three standards and their purposes.
Quantum cryptography is different: it uses the laws of physics to protect messages, and it is still early. Post-quantum cryptography is ordinary mathematics, designed to run on today's computers and resist tomorrow's quantum ones. Check a site's current TLS setup with our free SSL checker to see which standards it already uses.
What lessons does this history teach?
The first lesson is Kerckhoffs's principle: security must depend on the secrecy of the key, not on the secrecy of the system. The Caesar cipher, the Vigenere cipher and Enigma all depended on keeping the method secret, and all fell once the method was known.
The second lesson is to use only publicly reviewed standards. DES, AES and the post-quantum algorithms all went through open competitions and years of analysis. Secret, home-grown cryptography is almost always weaker than it looks, because it has not survived that scrutiny.
The third lesson is that key size and algorithm age matter. DES at 56 bits was fine in 1977 and broken by 1997. SHA-1 was fine in 1995 and weakened by 2005. Plan for migration: inventory where RSA, elliptic curves and older hashes are used, and test post-quantum options before you are forced to move. Our spear phishing guide shows why even strong cryptography fails when people are tricked into handing over the key.
The bottom line
Cryptography began as hidden writing in Egypt, became a science with frequency analysis and Shannon's mathematics, and became infrastructure with Diffie-Hellman, RSA, DES and AES. Each generation looked unbreakable until the next one found the flaw.
The next chapter is already written in standards: NIST's FIPS 203, 204 and 205, approved in August 2024, give organizations a quantum-resistant path. The history says to start that migration early, use open standards, and protect the key, because the key is where security has always lived.
Frequently asked questions
Who invented cryptography?
No single person invented cryptography. The earliest known example is an Egyptian inscription from around 1900 BC that used unusual hieroglyphs. Later contributors include Julius Caesar, Al-Kindi, Leon Battista Alberti, Claude Shannon, Whitfield Diffie, Martin Hellman, Ron Rivest, Adi Shamir and Leonard Adleman.
What is the oldest cipher?
The oldest known example is an inscription from around 1900 BC in the tomb of the Egyptian nobleman Khnumhotep II, which used non-standard hieroglyphs. A Mesopotamian tablet from around 1500 BC hid a pottery glaze recipe, which is the earliest known use of cryptography to protect a trade secret.
What is the Caesar cipher?
The Caesar cipher shifts each letter of a message by a fixed number of places in the alphabet. Caesar used a shift of 3, so A became D, B became E, and so on. It is a simple substitution cipher and is easily broken by frequency analysis.
How was Enigma broken?
Polish codebreakers first broke Enigma in the 1930s, and British mathematicians at Bletchley Park, including Alan Turing, built on that work with the Bombe machine. The key weakness was that Enigma's settings had to be shared in advance and its daily keys could be recovered.
What replaced DES?
AES, the Advanced Encryption Standard, replaced DES in 2001. NIST selected the Rijndael cipher after an open competition that began in 1997. AES uses 128-bit blocks and keys of 128, 192 or 256 bits, far longer than DES at 56 bits.
What is public-key cryptography?
Public-key cryptography uses a pair of mathematically related keys: a public key anyone can use to encrypt or verify, and a private key only the owner holds to decrypt or sign. Diffie-Hellman key exchange in 1976 and RSA in 1977 made it practical.
What are NIST post-quantum standards?
In August 2024 NIST approved FIPS 203 (ML-KEM, for key establishment), FIPS 204 (ML-DSA, for signatures) and FIPS 205 (SLH-DSA, for signatures). They are designed to resist attacks by future quantum computers, which threaten RSA and elliptic-curve cryptography.
Why does the history of cryptography matter today?
Every modern system still follows the lessons of that history: security must depend on the secrecy of the key, not the secrecy of the algorithm, and only publicly reviewed standards should be trusted. That is Kerckhoffs's principle, and it is why AES and the new post-quantum standards went through open competitions.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against IBM's and Red Hat's histories of cryptography and NIST's announcement of FIPS 203, 204 and 205.
How we write and fact-check →