xortool
Python command-line tool that guesses the key length and key of multi-byte XOR-encrypted data.
Python CLI · Free · Data analysis and case notes · github.com
- Takes
- File
- Pricing
- Free
- Footprint
- Passive · no contact with target
- Account
- Not needed
- API
- No public API
- Last verified
- Nov 26, 2026
Python command-line tool that guesses the key length and key of multi-byte XOR-encrypted data. It takes file. Read the cons before you build a workflow on it.
What it does
xortool analyses data encrypted with a repeating XOR key. It estimates the most likely key lengths from repeated characters, then guesses the key on the assumption of a most frequent plaintext character, such as a space in text or a null byte in binaries. It can also use known plaintext, brute-force the most frequent character and filter outputs to a character set like printable, Base64 or Base32.
Analysts use it on XOR-obfuscated malware payloads, configuration blobs and capture-the-flag puzzles. Decrypted candidates are written to files for review, and a companion xortool-xor utility applies a key to data.
Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.
- +Simple to install with pip
- +Handles multi-byte keys
- +Several attack modes for different kinds of plaintext
- −Only for XOR; other encodings need other tools
- −Guesses can be wrong on short or random-looking data
- −Command line only
When to use it
- 01Use it when you suspect a file or payload is obfuscated with a repeating XOR key.
- 02Use it when you know part of the plaintext and want to recover the full key.
Next steps from this result
Suggested from the inputs xortool takes- Found a resultConfirm it with a second, independent source before you record it
- Found a new identifierPivot on it only if your scope covers the new targetDepends
Quick start
pip3 install xortool
Technical details
Listing verified by an editor on Nov 26, 2026- API
- No public API
- Account
- Not needed
- Footprint
- Passive · no contact with target
- Pricing
- Free
- Platforms
- Python CLI
- Repository
- hellman/xortool 1,490 stars
- Language
- Python
- Last commit
- May 2025 (dormant)
- Listed
- Nov 26
Reviews
No reviews yet
Written by signed-in members. Each review appears here after an editor has read it.
Used xortool? Sign in to say what you used it for and how it went.
Sign in to reviewAlternatives to xortool
Listed tools that take the same inputs, closest match first.
- CyberChefOpen source · PassiveWhat it does
GCHQ's in-browser toolkit for decoding, decrypting, converting and parsing data by chaining operations into recipes.
FileNo ratings yetVerified today - DatasetteOpen source · Passive · APIWhat it does
Open-source tool that turns SQLite databases and CSV files into a browsable, searchable website with a JSON API.
FileNo ratings yetVerified yesterday - DatawrapperFreemium · Passive · account · APIWhat it does
Web tool for turning spreadsheets into interactive charts, maps and tables that can be embedded in articles.
FileNo ratings yetVerified yesterday

