A simple Python command-line tool to encrypt and decrypt messages using the Caesar Cipher algorithm.
The Caesar Cipher is one of the oldest and simplest encryption techniques.
It works by shifting each letter in the message by a fixed number of positions in the alphabet.
- Supports both encryption and decryption
- Preserves uppercase and lowercase letters
- Keeps numbers, spaces, and symbols unchanged
- Encrypt any text with a custom shift value
- Decrypt messages with the same shift value
- Interactive CLI menu for easy usage
git clone https://github.com/HarshitPal25/Caesar-Cipher-encryption-and-decryption-tool.git
cd caesar-cipher-clipython caesar_cipher.py
=== Caesar Cipher CLI Tool ===
Choose an option:
- Encrypt a message
- Decrypt a message
- Exit Enter choice (1/2/3): 1
Enter message to encrypt: Hello World Enter shift value: 3
π Encrypted message: Khoor Zruog
Choose an option:
- Encrypt a message
- Decrypt a message
- Exit Enter choice (1/2/3): 2
Enter message to decrypt: Khoor Zruog Enter shift value: 3
π Decrypted message: Hello World