Example7.1
One of the first and most famous private key cryptosystems was the shift code used by Julius Caesar. We first digitize the alphabet by letting A=00,B=01,β¦,Z=25. The encoding function will be
f(p)=p+3mod26;β
that is, Aβ¦D,Bβ¦E,β¦,Zβ¦C. The decoding function is then
fβ1(p)=pβ3mod26=p+23mod26.β
Suppose we receive the encoded message DOJHEUD. To decode this message, we first digitize it:
3,14,9,7,4,20,3.β
Next we apply the inverse transformation to get
0,11,6,4,1,17,0,β
or ALGEBRA. Notice here that there is nothing special about either of the numbers 3 or 26. We could have used a larger alphabet or a different shift.