This is a simple Python program that can encrypt and decrypt text using the Caesar Cipher algorithm. Users can input a message and a shift value to perform encryption and decryption
The program will prompt you to choose whether you want to encrypt or decrypt a message, and then ask for the text and the shift key.
- Encrypt text using a specified key.
- Decrypt encrypted text using the same key.
- Clone this repository to your local machine.
- Ensure you have Python installed.
- Run the script using Python.
- Open your terminal or command prompt.
- Navigate to the directory where
caesar_cipher.py
is located. - Run the script:
python caesar_cipher.py
Encrypting a message
$ python caesar_cipher.py
Do you want to encrypt or decrypt? e/d: e
ENCRYPTION MODE SELECTED
Enter the key: 3
Enter the text to encrypt: hello world
CIPHERTEXT: khoor zruog
Decrypting a message
$ python caesar_cipher.py
Do you want to encrypt or decrypt? e/d: d
DECRYPTION MODE SELECTED
Enter the key: 3.
Enter the text to decrypt: khoor zruog.
PLAINTEXT: hello world