This project implements the Caesar Cipher encryption and decryption algorithm using Python. It was developed as part of the Information Security Lab assignment (Spring 2026).
The Caesar Cipher is one of the oldest and simplest encryption techniques. It works by shifting each letter in a message by a fixed number of positions in the alphabet.
- Encrypts text using Caesar Cipher
- Decrypts encrypted text
- Maintains uppercase and lowercase letters
- Keeps spaces and special characters unchanged
- User input for message and shift value
- Python 3
- Make sure Python 3 is installed.
- Download the
.pyfile. - Run the program using:
- Enter your message and shift value when prompted.
The Caesar Cipher is a substitution cipher with only 25 possible shift keys.
It is not secure against modern attacks because:
- It can be broken using brute-force easily.
- It is vulnerable to frequency analysis.
- The key space is very small.
Sayeda Aliza Hashmi
Software Engineering Student
COMSATS University Islamabad