this is a tool for decrypting and analyzing ciphers
soo i made cracklab bcs i was given a encrypted cipher text by my friend and i had to go to many websites to try to solve so i thought why not make a program that can crack most encryptions in one app so i made this.
- Monoalphabetic substitution cipher cracking
- Caesar cipher
- Vigenère cipher
- Base64 decoding
- Base32 decoding
- Hex decoding
- Binary decoding
- Morse code decoding
- Frequency analysis
- Index of coincidence
- Entropy analysis
- Bigram analysis
- Pattern and dictionary matching
- English text scoring
- Key-based encryption and decryption
- Copy encrypted, decrypted, and cracked results to the clipboard
- rich for the terminal UI
- prompt_toolkit for prompts
- cryptography for AES-GCM encrypt and decrypt
- pyperclip for clipboard
- PyInstaller for the Linux executable
-
tries to identify the type of cipher or encoding.
-
Simple encodings such as Base64, Base32, Hex, Binary, and Morse are decoded directly.
-
For Caesar ciphers, it tries possible shifts and scores the results based on how closely they resemble English.
-
For monoalphabetic substitution ciphers it uses an iterative solver.
Made an executable for linux only If you are using windows or mac please build from source.
run using this from same dir
chmod +x crack
./crackgit clone https://github.com/Eraxty/Cracklab.git
cd CracklabInstall the dependencies:
python -m pip install -r requirements.txtRun CrackLab
python main.pyOn Windows, use py instead of python if that is the Python launcher
available on your system, for example py main.py.
Select option 1 and enter the ciphertext.
Example:-
Enter ciphertext:
> SEVMTE8gV09STEQ=
Cipher: Base64 (99%)
Decoded:
HELLO WORLD
It will analyze the input, detect its likely type, and run the appropriate decoder or solver.
The release is intended for:
Architecture: x86_64
OS: Arch Linux
Select option 2 and enter a message.
It generates an encrypted message with a key
Select option 3, then enter the encrypted text with its key.
The substitution solver does not simply replace letters based on frequency.
It combines several methods:
- Letter frequency analysis
- Repeated word patterns
- Dictionary candidate matching
- Partial plaintext matching
- N-gram scoring
- Common word scoring
- Mapping consistency
- Iterative candidate refinement
Install any project dependencies using:
pip install -r requirements.txtAI was used while making the iterative solver because I couldn't figure it out, Even with AI, it took hours of testing and changing the approach before it finally worked.But then i removed the ai code
AI was also used for smaller things that made development easier, like generating word dictionaries, test data, and helping debug parts of the project.

