Simple Substitution

Suppose we want to encrypt the plaintext message (with spaces removed)

      fourscoreandsevenyearsago

In a simple substitution cipher we would replace each letter by another letter of the alphabet, according to a fixed key. For example, we could use the following key.

plain abc def ghi jkl mno pqr stu vwx yz
cipher def ghi jkl mno pqr stu vwx yz abc

Using this key, the message above becomes the ciphertext is

      irxuvfruhdqgvhyhqbhduvdjr

Anyone who knows the key in the table above can easily recover the plaintext. This version of the simple substitution is known as the Caesar's cipher, since Julius Caesar used it to send encrypted messages.