🔐 Caesar Cipher (Python CLI) A simple Caesar Cipher program implemented in Python. This program allows the user to encrypt and decrypt text using a Caesar cipher with a user-defined shift. It includes basic input validation and gives the user an option to continue or exit the program after each round.
✨ Features 🔐 Encrypt and decrypt messages using a Caesar cipher
🔄 Supports shifting letters by a user-defined number
🧠 Input validation for text and shift values
🔁 Option to play again after each round
📦 Requirements Python 3.x+
No external libraries required (only standard Python modules)
🚀 How to Run Save the script as caesar_cipher.py.
Ensure you have Python 3.x installed.
Run the game by typing the following command in your terminal: python caesar_cipher.py Follow the on-screen instructions to encrypt or decrypt a message.
🧠 Sample Gameplay Type 'encode' to encrypt, type 'decode' to decrypt: encode Type your message: hello world Type the shift number: 5 encrypted text is: mjqqt btwqi
want to play another game yes or no: yes
Type 'encode' to encrypt, type 'decode' to decrypt: decode Type your message: mjqqt btwqi Type the shift number: 5 decrypted text is: hello world
want to play another game yes or no: no Goodbye 🧩 How It Works Direction Selection: The user selects whether they want to "encode" (encrypt) or "decode" (decrypt) a message.
Shift Number: The user specifies a number for the shift (e.g., 5 for a shift of 5 letters).
Message Input: The user inputs the text they want to encrypt or decrypt.
Cipher Algorithm: The program shifts each letter in the message by the specified amount, wrapping around the alphabet as necessary.
Repetition: The user can choose to run another round or quit the program.
🔮 Future Enhancements 🔢 Validate that the shift number is a positive integer.
🔠 Add the ability to work with uppercase letters.
🛡️ Improve security with more complex encryption algorithms (e.g., Vigenère Cipher).
🎮 Create a graphical interface (GUI) using tkinter or pygame.