A Caesar Cipher involves two alphabets, one "normal" and a second alphabet that has been shifted to the left or right. For example:
A B C D E F ...
Q R S T U V ...
To "encipher" a message, or put it into code, you find the letter that you want to encipher and then look directly below to find the enciphered version of that letter. For example, you would encipher a "C" as an "S". You would then repeat this process to encipher the entire message.
To "decipher" a message, or take it out of code, you reverse the process. You locate the letter in the second row that you want to decipher, and then look immediately above it to find the deciphered version of that letter. For example, you would decipher a "U" as an "E". You would then repeat this process to decipher the entire message.
This program involves enciphering Abraham Lincoln's Gettysburg Address. Here is what the output should look like:
Download CaesarCipher.java to get started on the program. Instructions for writing the program are given in the Java file.