Symmetric ciphers [00ID]

The code used in the warm-up is a Caesar cipher—shift every letter by the same amount through the alphabet. It’s not a very secure cipher, but there are (slightly) more secure variants, such as a Vigenère cipher, where instead of a single shift amount we choose a sequence of shift amounts and cycle through them. Typically one would choose a key word and use the letters of the key word to determine the shift amounts.

These are all known as symmetric ciphers: in order to communicate, sender and receiver must have a shared, secret key. The secret key must be known by the people communicating (and no one else), and the same key is used for both encrypting and decrypting. This works fine in many situations, but it has some drawbacks:

  • The two parties must somehow agree on a secret key before they can communicate. In order to keep the key a secret, typically this must be done in person.
  • Because of this need to agree on a secret key, it is impossible for people who have never met to communicate securely.