Caesar Cipher

Encrypt and decrypt text using the classic Caesar cipher with custom shift values.

Input

Output

How Caesar Cipher Works

The Caesar cipher is a substitution cipher where each letter in the plaintext is shifted a certain number of places down the alphabet. For example, with a shift of 3: A → D, B → E, C → F, etc.

Example: "HELLO" with shift 3 becomes "KHOOR"