How to Use a Caesar Cipher
The Caesar cipher shifts letters by a set number of places in the alphabet. Here's how it works:
Encrypting a Message
Choose a shift number (e.g., 3).
Write your message. Example:
HELLO
Shift each letter forward in the alphabet by the shift number:
H
→K
(shift 3 spaces forward)E
→H
L
→O
L
→O
O
→R
Result:
KHOOR
Decrypting a Message
Know the shift number used to encrypt.
Write the encoded message. Example:
KHOOR
Shift each letter backward in the alphabet by the shift number:
K
→H
(shift 3 spaces backward)H
→E
O
→L
O
→L
R
→O
Result:
HELLO
How to Use a Vigenère Cipher
The Vigenère cipher uses a keyword to encode or decode a message. Here's how:
Encrypting a Message:
Write your message. Example:
HELLO WORLD
Repeat your keyword above the message to match its length:
KEYWORDKEYW
HELLO WORLD
Use the Vigenère Table:
Find the row for the keyword letter.
Find the column for the message letter.
The intersection is your encrypted letter. Example:
H (row K) = R
Skip spaces and write the result:
Encrypted: RIODA YRMDA
Decrypt a Message
Write your encoded message. Example:
RIODA YRMDA
Repeat your keyword above it:
KEYWORDKEYW
RIODA YRMDA
Use the Vigenère Table:
Find the row for the keyword letter.
Locate the ciphertext letter in that row.
The column gives you the original letter. Example:
R (row K) = H
Skip spaces to reveal the original message:
Decrypted: HELLO WORLD