A powerful, modular Python-based tool designed to decrypt a wide variety of ciphers by intelligently identifying encryption methods and producing human-readable results. Whether you're a CTF player, a puzzle enthusiast, or a student of cryptography, this tool offers professional-grade automated and manual decryption capabilities.
- 🚀 Automated Engine: Attempts multiple decryption methods (Caesar, Vigenère, XOR, Base64, etc.) and ranks them by linguistic confidence using NLTK-backed scoring.
- 🛠️ Expanded Manual Mode: Supports 13+ specific decryption methods including classical, complex, and modern ciphers with customizable keys.
- 🧠 Smart Vigenère Cracker: Automatically identifies key lengths using Index of Coincidence (IC) and cracks keys via frequency analysis.
- ⚡ CLI & Interactive Support: Use the colorful interactive menu or pass arguments directly for fast automation.
- 📊 Detailed Metrics: Displays confidence percentages and scoring based on English word distributions.
- 💾 Logging & Export: Save single results or entire session logs for later analysis.
- Install Python: Python 3.13+ recommended.
- Clone the Repository:
git clone https://github.com/yourusername/Universal-Decryptor.git cd Universal-Decryptor - Install Dependencies:
pip install -r requirements.txt
python decryptor.py# Automated decryption
python decryptor.py --auto "Khoor"
# Jump to manual menu
python decryptor.py --manual| Category | Ciphers |
|---|---|
| Classical | Caesar, ROT13, Atbash, Affine, Rail Fence |
| Complex | Vigenère (Auto-crack), Playfair, Hill (2x2) |
| Encoding | Base64, Base32, Hexadecimal, Binary, URL |
| Modern | XOR (Single-byte & Multi-byte keys), Hash Detection |
| Esoteric | Morse Code, Bacon Cipher |
- Refined Scoring: Uses NLTK's
punktandwordscorpora combined withpyenchant(optional) to validate results. - Pattern Prioritization: Detects binary, hex, and Morse patterns to give them a scoring bonus.
- Periodic Analysis: Uses frequency-based delta analysis to crack polyalphabetic ciphers like Vigenère.
- Fork the repo and create your feature branch.
- Ensure tests pass by running
pytest tests/test_all.py. - Open a Pull Request!
This project is licensed under the MIT License - see the LICENSE file for details.