Symmetric Encryption
One shared key, AES, block modes, and why ECB leaks pictures.
Symmetric encryption protects most of the world's data at rest and in transit. Learn the basics and the most famous mistake.
1
One key
In symmetric encryption the same key encrypts and decrypts. It's fast, so it's used for bulk data: disk encryption, Wi-Fi, and the data part of every TLS connection.
The standard algorithm is AES (Advanced Encryption Standard), chosen in 2001. It encrypts 128-bit blocks with a 128, 192, or 256-bit key.
The hard part isn't the algorithm, it's sharing the key safely. That's what public-key crypto solves (next rooms).
2
Modes and the ECB penguin
A mode says how to encrypt data longer than one block.
ECB (Electronic Codebook) encrypts each block independently. Identical plaintext blocks give identical ciphertext blocks, so patterns survive: an ECB-encrypted image of a penguin is still recognisably a penguin.
Use GCM (or another authenticated mode) instead: it hides patterns and also detects tampering.
โ Report a problem with this room
Log in to report a problem.