A beginner-level Python training assignment that implements the Caesar Cipher technique for basic text encryption and decryption.
The Caesar Cipher is a classical substitution cipher in which each alphabetic character is shifted by a fixed number of positions in the alphabet.
This program allows users to:
- Encrypt a message using a shift value.
- Decrypt an encrypted message.
- Preserve uppercase and lowercase letters.
- Keep spaces, numbers and special characters unchanged.
- Python 3
Caesar-Cipher-Encryption/
│
├── caesar_cipher.py
└── README.md
- Python 3 installed on your system.
- Clone the repository:
git clone https://github.com/manideepbattu/Caesar-Cipher-Encryption.git- Open the project folder:
cd Caesar-Cipher-Encryption- Run the Python file:
python caesar_cipher.pyEncryption
Enter your message: HELLO
Enter the shift value: 3
Choose operation (encrypt/decrypt): encrypt
Result: KHOOR
Decryption
Enter your message: KHOOR
Enter the shift value: 3
Choose operation (encrypt/decrypt): decrypt
Result: HELLO
- Caesar Cipher is a basic educational encryption technique.
- It is vulnerable to brute-force and frequency analysis attacks.
- It should not be used to protect real-world sensitive information.
- The program does not currently validate all user inputs.
- Understanding basic encryption and decryption.
- Working with Python strings and loops.
- Using ASCII values and modular arithmetic.
- Understanding a classical substitution cipher.
Battu Manideep
GitHub: manideepbattu
This repository contains a beginner-level training assignment completed as part of cybersecurity learning.