A simple encryption and decryption tool that supports Vigenère and Caesar ciphers. Works with all printable ASCII characters (codes 32–126).
- Encrypt or decrypt text:
- Vigenère Cipher: Key-based encryption using a string.
- Caesar Cipher: Shift-based encryption using an integer.
- Interactive menu-driven interface.
- Input validation for plaintext, ciphertext, and keys.
./cipher.py encrypt v "Hello World" "Hello World"Will output:
Encrypted message:
1kyy @O &yi./cipher.py encrypt c "Hello World" 3Will output:
Encrypted message:
Khoor#Zruog./cipher.py decrypt v "1kyy @O &yi" "Hello World"Will output:
Decrypted message:
Hello World./cipher.py decrypt c "Khoor#Zruog" 3Will output:
Decrypted message:
Hello World