Substitution Ciphers

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ZYXWVUTSRQPONMLKJIHGFEDCBA
Fig. 1: This kind of alphabet reversal cipher is called an Atbash cipher, from the Hebrew letters aleph, tav, bet and shin.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
DEFGHIJKLMNOPQRSTUVWXYZABC
Fig. 2: the Caesar Cipher

ABCDEFGHIJKLMNOPQRSTUVWXYZ
EJOTYDINSXCHMRWBGLQVAFKPUZ
Fig 3: multiplication cipher given by 5M mod 26

*26! = 1 x 2 x 3 x … x 25 x 26. You can see there are exactly this many ciphers by first noting that no two letters can correspond to the same letter under the cipher, because this would be totally unhelpful when it came to decoding (for an extreme example, imagine if every letter mapped to Z!). So if we start at A, we can map A to any letter of the alphabet: there are 26 choices for A will go. But for B we only have 25 choices (26 minus 1 for the letter A was mapped to). And so on: 24 choices for C, 23 for D until there is only one choice for Z. Multiplying all these choices together gives us 26! substitution ciphers. Note also that not every substitution cipher is affine. Can you think of one that isn’t?

Article 2: RSA Cryptography

Article 3: Elliptic Curve Cryptography

2 comments

Leave a reply to RSA Cryptography – TOM ROCKS MATHS Cancel reply