This project is a simple implementation of the Caesar Cipher, one of the oldest and most basic encryption techniques.
It allows the user to encrypt or decrypt a message by shifting letters of the alphabet by a fixed number.
This project was created as part of my Python learning journey and helped me understand string manipulation and encryption logic.
The Caesar Cipher works by shifting each letter in a message by a certain number of positions in the alphabet.
Example (Shift = 3): encoding A → D B → E C → F
forloopsif / elseconditions- Strings and indexing
- Modulo operator
% - Basic encryption & decryption logic
- User input handling
- The user chooses whether to encrypt or decrypt
- The user enters a message
- The user enters a shift number
- The program shifts each letter accordingly
- The encrypted or decrypted message is displayed
- Make sure Python is installed
- Download or clone this repository
- Run the program using:
python caesar_cipher.py