Skip to main content

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.

ABCDEFGHIJKLMNOPQRSTUVWXYZDEFGHIJKLMNOPQRSTUVWXYZABC

Encoding​

To encode a message using the Shift Alphabet Cipher:

shift = 3

  1. Take each letter in the plaintext.
  2. 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:

  1. Take each letter in the encoded message.
  2. 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

Learn More​

Demo

Constructor Options

Encode Options
Decode Options