CIPH-1Lesson 1 of 38 min

Plaintext, ciphertext and key

Unit 3 is about the tools that keep secrets and prove things: encryption, hashing and signatures. It starts with ciphers people used by hand, because they show every main idea without any maths.

The words

The science of ciphers is called cryptography. Breaking them without the key is called cryptanalysis.

A shift cipher

The simplest cipher replaces each letter with the letter a fixed number of places later in the alphabet. The Roman writer Suetonius recorded that Julius Caesar used a shift of three, so it is often called the Caesar cipher. A shift of 13 is called ROT13; doing it twice gives back the original.

Figure CIPH-1.1A shift cipher with key 3
plainABCDEFGHIJKLM
cipherDEFGHIJKLMNOP
plainNOPQRSTUVWXYZ
cipherQRSTUVWXYZABC
1/5

A shift cipher writes each letter as the letter a fixed number of places later in the alphabet. Here the shift is 3: the top row is the plain letter, the row under it is the letter written instead. A becomes D, B becomes E, and at the end X, Y and Z wrap round to A, B and C.

Step 1 of 5

The key is the secret

In a shift cipher, everyone can know the method. Only the size of the shift has to stay secret. Keeping the method public and the key secret is a rule modern cryptography still follows, as lesson 3 explains.

CIPH-1 counts as completed once you step through the figure to its last step.