Shift Alphabet
The Shift Cipher (also known as Caesar Cipher) is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher where each letter in the plaintext is replaced by a letter a fixed number of positions down or up the alphabet.
Encoding
To encode a message using the Shift Alphabet Cipher:
shift = 3
- Take each letter in the plaintext.
- Shift it by the specified number of positions down the alphabet.
- H →
K - E →
H - L →
O - L →
O - O →
R
Decoding
To decode a message:
- Take each letter in the encoded message.
- Shift it back by the specified number of positions up the alphabet.
Repeat this process for the entire message.
Example
shift = 3
Input: HELLO WORLD
Encoded: KHOOR ZRUOG
Decoded: HELLO WORLD