Skip to content

Instantly share code, notes, and snippets.

@inakidelamadrid
Created October 30, 2014 16:44
Show Gist options
  • Save inakidelamadrid/56d14bfeb7aae97b84bc to your computer and use it in GitHub Desktop.
Save inakidelamadrid/56d14bfeb7aae97b84bc to your computer and use it in GitHub Desktop.
Write a program that implements Caesar's Cipher.
The alphabet is
(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 ? !)
Encode the following messages with a displacement of 1
hello world!
mocking bird
Encode the following messages with a displacement of 4
foo bar
save the queen!
how are you?
the space character must be encoded to the '*' character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment