Shifted alphabet code calculator (Caeser code)
A simple coding method is to simply move the alphabet by a number of places back
or forward, such as to move it back by three places:
abcdefghijklmnopqrstuvwxyz
DEFGHIJKLMNOPQRSTUVWXYZABC
Thus:
cat
would become:
FDW
The following should be able to determine the code for a given phrase and a
number of shifts:
To test, a one shift for cat should give "DBU", and a two shift gives "ECV", and a three shift gives "FDW", and so on.
Next try foxtrot for three places, and it should give: "IRAWURW" and scooby for three places should give: "VFRREB".
|