This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
This should help to explain how the Caesar cipher operates. Practical Cryptography Caesar Cipher. It's a very simple idea and sometimes known as a shift cipher, since you are just shifting each letter along an alphabetical scale using a fixed number of steps. Therefore using a shift step of three - an "a" letter would become "d". The alphabet is used in a circular manner so a "z" would become would become a "c".
The normal implementation of this is to take a set of characters and convert them their numerical (integer) values in order to perform the shift addition. They are then converted back to their character values.
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop