A simple command-line tool written in Python for encrypting and decrypting text using the classic Caesar Cipher algorithm.
- Encrypt plaintext by shifting letters by a user-defined number.
- Decrypt ciphertext back to the original text using the same shift.
- Input validation to ensure the shift is a valid integer.
- User-friendly command-line interface with options to encrypt, decrypt, or exit.
- Python 3.x installed on your system.
- Clone the repository or download the source code.
git clone https://github.com:Hamidkarimi-h/caeser-cipher-tool.git
cd caesar-cipher-tool- No external dependencies are required.
Run the main program:
python main.pyFollow the on-screen instructions to:
- Choose to encrypt or decrypt.
- Enter the text.
- Enter the shift amount.
=== Caesar Cipher Tool ===
Choose your option:
1) Encrypt
2) Decrypt
3) Exit
Your choice: 1
Enter the text to encrypt: Hello World!
Enter the shift amount (integer): 3
Encrypted text: Khoor Zruog!
----------------------------------------
caesar-cipher-tool/
│
├── main.py # Main program with CLI interface
├── caesar.py # Caesar cipher encryption and decryption logic
└── README.md # Project documentation
This project is licensed under the MIT License.