Send and receive secret messages by encrypting and decrypting them. The program will use a simple shift cipher that was used by Julius Caesar.
For more information see Wikipedia Caesar Cipher.
A simple shift cipher replaces every plaintext letter in the alphabet with a letter from the shifted alphabet.
For example, if the shift count is +3
A becomes X, B becomes Y, C becomes Z, D becomes A, ...ABCDEFGHIJKLMNOPQRSTUVWXYZ
(plaintext alphabet)
XYZABCDEFGHIJKLMNOPQRSTUVW
(shifted alphabet)
What to do with punctuation characters, etc? (.,"'&*%$@?/[]{})
What to do with number characters? (1234567890)
What to do with spaces?
What to do with unprintable characters?
(For example, ASCII has a bell characters which would ring the bell
on a teletype machine)
Note: the Enigma machine only encoded capitol A - Z
- lowercase letters were not allowed
- numbers were spelled out (one, two, ...)
- unprintable characters were never transmitted
- punctuation, spaces, etc. where replaces by an 'X'
- This was good enough for text messages
Wikipedia - Caesar Cipher
Wikipedia - Cryptography
Wikipedia - ASCII
ASCII Codes (decimal)
Wikipedia - Enigma machine