Caesar Hacker is a Linux-based Python CLI tool that implements Caesar cipher encryption, decryption, brute-force attacks, and automatic English detection.
This project is built for learning cryptography fundamentals, classical cipher weaknesses, and real-world cryptanalysis techniques.
- π Encrypt text using Caesar Cipher
- π Decrypt text with a known shift
- π£ Brute-force all 26 shifts
- π§ Auto-detect English plaintext
- π File input support (
-f <file>) - π¨ Colored terminal output
- π Hacker-style ASCII banner
- π§ Linux executable script
- β‘ No external dependencies
The Caesar cipher is a classical substitution cipher where each letter is shifted by a fixed number of positions.
Example (shift = 3):
A β D B β E Z β C
yaml Copy code
- Python 3.7 or higher
- Linux / WSL / Unix-based terminal
git clone https://github.com/yourusername/Caesar-Cipher-Tool.git
cd Caesar-Cipher-Tool
chmod +x CS.py
./CS.py --help
General Syntax ./CS.py [options]
./CS.py encrypt "HELLO WORLD" 3 ./CS.py encrypt -f plain.txt 5
./CS.py decrypt "KHOOR ZRUOG" 3 ./CS.py decrypt -f encrypted.txt 3
./CS.py bruteforce -f encrypted.txt
./CS.py bruteforce -f encrypted.txt --auto
Mode Shift Required Description encrypt Yes Encrypt plaintext decrypt Yes Decrypt ciphertext bruteforce No Try all shifts bruteforce --auto No Auto-detect plaintext
##π§ͺ Example Encrypted text:
objectivec Copy code WKLV LV D VHFUHW PHVVDJH Output:
[+] Shift 3 β THIS IS A SECRET MESSAGE
Caesar cipher shifts characters within the alphabet
Brute-force tests all 26 keys
English scoring ranks results using word and space frequency
Caesar-Cipher-Tool/ βββ CS.py βββ encrypted.txt βββ README.md
This project is for educational purposes only. Do not use Caesar cipher for real-world security.
Om Jadhav Computer Engineering Student Cybersecurity Enthusiast
If you found this useful, give the repository a β