A Python-based Caesar cipher encryption and decryption tool that allows users to encode and decode messages using the classic Caesar cipher algorithm.
- Encryption: Transform plain text messages into encoded messages by shifting letters in the alphabet.
- Decryption: Decode encoded messages back to the original text using the reverse shift.
- User-Friendly Interface: Interactive prompts guide users to input the cipher direction, message, and shift amount.
- Alphabetic Wrapping: Handles shifts that wrap around the alphabet, ensuring accurate encryption and decryption.
- Non-Alphabetic Character Preservation: Preserves spaces and special characters in the output, maintaining message integrity.
- Run the Python script in your terminal or IDE.
- Choose 'encode' to encrypt a message or 'decode' to decrypt a message.
- Enter the message you want to encrypt or decrypt.
- Input the shift amount (a positive integer) to determine the encryption/decryption key.
- The program will display the encoded or decoded message.
Type 'encode' to encrypt, Type 'decode' to decrypt:
encode
Type your Message: hello world
Type the shift number: 3
The Encoded text is khoor zruog