File | Date | Author | Commit |
---|---|---|---|
.idea | 2025-01-25 |
![]() |
[bf8a89] Added Support For English cryptanalysis |
data | 2025-01-23 |
![]() |
[b017b4] Initial commit |
tests | 2025-01-25 |
![]() |
[bf8a89] Added Support For English cryptanalysis |
.gitattributes | 2025-01-23 |
![]() |
[b017b4] Initial commit |
.gitignore | 2025-01-23 |
![]() |
[b017b4] Initial commit |
LICENSE | 2025-01-24 |
![]() |
[bce35f] wrapped in executable GUI |
README.md | 2025-01-25 |
![]() |
[e6530a] updated readme to reflect changes |
TME_Vigenere-etu_compressed.pdf | 2025-01-23 |
![]() |
[b017b4] Initial commit |
cryptanalyse_vigenere.py | 2025-01-25 |
![]() |
[7de4b8] Added Support For English cryptanalysis |
enervige.py | 2025-01-25 |
![]() |
[bf8a89] Added Support For English cryptanalysis |
requirements.txt | 2025-01-25 |
![]() |
[7de4b8] Added Support For English cryptanalysis |
test-all.sh | 2025-01-23 |
![]() |
[b017b4] Initial commit |
Cryptanalyse Vigenère is a Python-based project for encryption, decryption, and cryptanalysis of text using the Caesar and Vigenère ciphers. The project includes advanced statistical techniques to break the Vigenère cipher using methods like frequency analysis, mutual index of coincidence (ICM), and more.
This repository provides two ways to interact with the project:
1. Console Option: A command-line interface for advanced users and automation.
2. GUI Option: A graphical user interface for ease of use.
3. Standalone Executable GUI: A standalone executable application for Windows.
Ensure you have Python 3.8 or higher installed on your system. Install required dependencies using pip
:
pip install -r requirements.txt
Clone the repository:
bash
git clone <repository-url>
cd <repository-folder>
Run the script for console interaction:
bash
python cryptanalyse_vigenere.py --help
Command-line arguments:
bash
python cryptanalyse_vigenere.py --encrypt --text "TEXT" --key "KEY"
bash
python cryptanalyse_vigenere.py --decrypt --text "ENCRYPTED_TEXT" --key "KEY"
bash
python cryptanalyse_vigenere.py --analyse --text "CIPHER_TEXT"
Install tkinter
for Python if not already installed:
bash
sudo apt-get install python3-tk # For Ubuntu/Debian
brew install python-tk # For macOS
Run the GUI:
bash
python enervige.py
Use the GUI to:
dist\enervige.exe
python cryptanalyse_vigenere.py --encrypt --text "HELLO" --key "KEY"
Output:
Encrypted Text: XDFWN
python cryptanalyse_vigenere.py --analyse --text "XDFWN"
Output:
Decrypted Text: HELLO
tests
subdirectory.test-1-cesar.py
, test-2-vigenere-cipher.py
up to test-9-cryptanalyse-v3
are unit tests for each function and their combination.cryptanalyse_vigenere.py
which is the core functionality module around which the GUI enervige.py
is wrapped around.This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests.