Symmetric encryption: history
From the scytale and the Caesar cipher to polyalphabetic ciphers, from rotor machines to DES and AES.
The Spartan scytale and the Caesar cipher: simple keys, shared in advance.
Alberti and Bellaso introduce polyalphabetic ciphers with a keyword.
Gilbert Vernam and Joseph Mauborgne define encryption with a random key combined bit by bit: the one-time pad.
Rotor machines such as Enigma mechanise symmetric encryption.
Claude Shannon founds the mathematical theory of secrecy, with the concepts of confusion and diffusion.
DES becomes a US federal standard: symmetric encryption enters the civilian world.
AES replaces DES after an international public competition.
AES and ChaCha20 protect most communications and data.
The problem that changed everything
For millennia symmetric encryption had a single great limit: key distribution. Armies printed key books, embassies received diplomatic bags. In 1976 Diffie and Hellman showed how to agree on a secret key over a public channel, opening the era of the hybrid cryptography we use today.
Symmetric encryption: the maths
XOR and its properties, the size of the key space, brute force and the problem of the number of keys among many users.
The pages of this topic
Back to the overviewSymmetric encryption: how it works
How block and stream ciphers work, modes of operation and authenticated encryption.
Symmetric encryption: worked example
An example of XOR encryption on a single character and on a word, to see how the same key encrypts and decrypts.
Symmetric encryption: weaknesses and attacks
Brute force, reuse of keys and nonces, wrong modes, side channels and poor key management: how symmetric encryption is attacked.
Symmetric encryption today
Where symmetric encryption is used every day and which algorithms are recommended: AES-GCM, ChaCha20-Poly1305, disk encryption.
Symmetric encryption: try it yourself
Exercises on XOR, counting keys and brute force, with solutions.
Symmetric encryption: frequently asked questions
Short answers to the most common doubts about symmetric encryption.