Stats2

An Introduction

A Caesar Shift substitution cipher is a simple cipher where every Letter of the alphabet is substituted by another.

To start with, each Letter of the alphabet is replaced by a number.

A→ 0
B→ 1
C→ 2
↓↓
Z→ 25

Then we apply a Shift, say 3, to the entire list by adding 3 to each number in turn. So,

A→ 0 + 3 = 3
B→ 1 + 3 = 4
C→ 2 + 3 = 5
↓↓
Z→ 25 + 3 = 28

Finally the number is replaced with the Letter that corresponds to the Letter from the initial list.

i.e.A→ 0→ 3→ DB→ 1→ 4→ EC→ 2→ 5→ F... etc.

You will notice that with the Letters X, Y and Z we have a problem here because no Letters are assigned to 26, 27 and 28. This problem is resolved by using modular arithmetic, in this case we are using mod 26. What we do is subtract 26 from any number above 25 so our final number is between 0 and 25.

So,X→ 23→ 26→ 0→ AY→ 24→ 27→ 1→ BandZ→ 25→ 28→ 2→ C.

The following table shows the complete alphabet after a Caesar Shift of three places. Click on the buttons below to modify the table for any shift.

Caesar Shift Table


Shift size: 3