|
Caesar's Shift CodeWho hasn't had the need to pass some secret information to a friend? That's whatsecret codes are all about. There are many kinds of codes, but we are only going to learn about one in this experiment. Sometimes this code is called the shift code, and sometimes it is called Caesar's code. Of its two names, I like the first one best because it describes how its coding and decoding process works.
Let's get started. Imagine two lines, each containing the alphabet and both lined up Line 2: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Next, let's shift Line 1 one place to the right: Line 2: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Oops! The first space in Line 1 is now blank, and there is an extra letter hanging Line 2: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Now we are ready to code a secret message, but before we do we should make a letter in JOHN on Line 1,and write down the letter on Line 2 that is directly below it. Starting with J we see that K is directly below, so we write down K. Continuing in the same way for all the letters in JOHN you should get KPIO.
To decipher KPIO, or turn it back into JOHN, your friend would either have to do shift Line 1's alphabet to the right, relative to Line 2's. One more example will make this clear. Let's make our key D this time.
We start with: Line 2: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Next we shift Line 1's A over Line 2's D Line 2: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Then we move Line 1's overhang, the X, Y, and Z , from the right of Line 1 to Line 2: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Now, John becomes MRKQ. I know, I know, this looks like a lot of work, but it really isn't. Besides, yourmessage is secret. The whole point is to keep all but your friend from reading it.
I'll bet you are thinking there is an easier way to do this, and you are correct. |