Decodify
Decodify is a Python package that detects and decodes (or encodes) messages using 29 classic and modern encodings and ciphers. It provides both a simple Python API and a command-line interface.
Features
- 29 algorithms covering base encodings, web/text encodings, classical ciphers, and historical specialty codes
- Automatic detection with priority for distinctive formats
- Encode + decode round-trip support for every algorithm
- Keyed ciphers (Caesar, Vigenère, XOR, Affine, Rail Fence) accept keys/shifts via API or CLI
- CLI with file I/O, algorithm forcing, and encoding mode
Supported Algorithms
| Category | Algorithms |
|---|---|
| Base encodings | base64, base32, base58, base85 (Ascii85), base45 (RFC 9285), base36, hex, binary |
| Text / web | url, quoted_printable, html_entities, unicode_escape, punycode, jwt (header+payload) |
| Classical ciphers | rot13, rot47, caesar, atbash, vigenere, rail_fence, affine, xor |
| Historical / specialty | morse, baconian, polybius, tap_code, nato, uuencode, brainfuck |
Installation
pip install -e .
# or
pip install decodify
Quick Start (Python)
from decodify import decode_message, encode_message, list_algorithms
# Auto-detect + decode
text, probs = decode_message("SGVsbG8=")
print(text) # Hello
print(probs) # {'base64': 1.0, ...}
# Force algorithm
text, _ = decode_message("Uryyb", algorithm="rot13")
text, _ = decode_message("...", algorithm="vigenere", key="LEMON")
text, _ = decode_message("...", algorithm="caesar", shift=13)
# Encode
print(encode_message("Hello World", "base64"))
print(encode_message("SOS", "nato"))
print(encode_message("Attack at dawn", "caesar", shift=4))
print(encode_message("secret", "xor", key="key"))
print(list_algorithms())
CLI
# Auto-detect
decodify "SGVsbG8="
# Force algorithm
decodify -a base64 "SGVsbG8="
decodify -a morse ".... . .-.. .-.. ---"
decodify -a caesar --shift 13 "Uryyb"
decodify -a vigenere --key SECRET "ciphertext"
# Encode
decodify -e -a base64 "Hello World"
decodify -e -a nato "HELP"
# Files
decodify -f encoded.txt -o decoded.txt
# List all algorithms
decodify --list
Notes on detection
Detection is heuristic. Distinctive formats (JWT, uuencode, Brainfuck, Tap code, Morse, NATO, Baconian, Polybius, Base45/58/85, etc.) are preferred. Ambiguous classical ciphers (Caesar, Vigenère, ROT, XOR, Affine, Rail Fence) are not auto-detected — pass -a / algorithm= explicitly together with the key/shift when needed.
License
MIT
Contributing
Contributions welcome — add new algorithms under decodify/algorithms/ following the is_X / decode_X / encode_X pattern and register them in algorithms/__init__.py.
Contact / Original author
- GitHub: ishanoshada
- Repository: https://github.com/ishanoshada/decodify
Enjoy decoding with Decodify! 🚀
Metadata
Release files for decodify 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| decodify-0.1.4.tar.gz | 20.1 kB | With provenance | Details for decodify-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| decodify-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for decodify-0.1.4-py3-none-any.whl |
Total release size: 47.6 kB
Release files / decodify-0.1.4.tar.gz
| Download URL | decodify-0.1.4.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfe9cba968b24752a3861fabeda9b4d64dfe32d1fcac2c23d65bdab672a2d966
|
|
BLAKE2b-256 checksum How to use checksums |
ec4aec01fe7c09e04cf25426b9dcb0fa4c2916f7304049a32312f7f57d973234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / decodify-0.1.4-py3-none-any.whl
| Download URL | decodify-0.1.4-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87ecb7efdb49a8fe4fcf81d983808fad47721ec753c45938719703633dd50027
|
|
BLAKE2b-256 checksum How to use checksums |
5915c33b1751c7ddabd0d9b7403fbffe77b221368adf5c4372cb2aa4e2e7cf1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for decodify 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for decodify-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.