This is a Python implementation of the classic Caesar Cipher encryption technique. The program allows users to encrypt and decrypt text by providing a custom shift value.
- Encrypt any text using Caesar Cipher
- Decrypt text back to original form
- Customizable shift values
- User-friendly terminal interface
The Caesar Cipher is a type of substitution cipher where each letter in the plaintext is shifted a certain number of places down the alphabet. For example, with a shift of 3:
- A β D
- B β E
- Z β C
You can also reverse the process to decrypt.
- Python 3.x installed on your system
- Clone this repository:
git clone https://github.com/pys07/PRODIGY_CS_01.git
cd PRODIGY_CS_01- Run the script:
python caesar_cipher.py-
Follow the on-screen instructions to:
- Enter your message
- Provide a shift value
- Choose encryption or decryption
Welcome to the Caesar Cipher Program!
Enter your message: hello world
Enter the shift key (integer): 3
Encrypt or Decrypt? (e/d): e
Result (encrypted message):
khoor.zruog
PRODIGY_CS_01/
βββ caesar_cipher.py
βββ README.md
Made with β₯ by Payal Samant