pydecodr
A modular CTF/crypto library toolkit for encodings, classic ciphers, and autodetection. CLI included :3.
pydecodr is a Python package that lets you encode, decode, encrypt or decrypt text using classical, polyalphabetic, modern, and stream ciphers, all through a Python API and a CLI interface
Features:
- classical ciphers: (caesar, atbash, affine, rot13, substitution, hill, polybius, 4square, bacon)
- polyalphabetic: (vigenere, autokey_vigenere, beaufort, playfair, gronsfeld)
- fractionation: (bifid, ADFGX, trifid, ADFGVX)
- transposition: (railfence, columnar, double transposition, myszkowski, route)
- stream: (xor, repeating xor, rc4)
- modern: (aes, rsa, hash utilities)
- encodings: (b32, b64, hex, URL-safe, morse, base85)
- detection & utils: (file magic detection, I/O helpers)
- cli interface
Installation
pip install pydecodr
Usage
CLI interface
You can use any cipher module directly with Python's -m flag:
# caesar cipher
python3 -m pydecodr.ciphers.classical.caesar encrypt "HELLO" 3
# -> KHOOR
python3 -m pydecodr.ciphers.classical.caesar decrypt "KHOOR" 3
# -> HELLO
Python API
from pydecodr.ciphers.classical import caesar
from pydecodr.ciphers.polyalphabetic import vigenere
print(caesar.encrypt("HELLO", 3))
# KHOOR
print(vigenere.encrypt("HELLOWORLD", "KEY"))
# RIJVSUYVJN
Or load dynamically using the global registry:
from pydecodr import load_module
mod = load_module("adfgx")
ciphertext = mod.encrypt("DEFEND THE EAST WALL", "FORTIFICATION", "CIPHER")
print(mod.decrypt(ciphertext, "FORTIFICATION", "CIPHER"))
Check this for more usage: usage
Metadata
Release files for pydecodr 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 |
|---|---|---|---|---|
| pydecodr-0.1.4.tar.gz | 34.6 kB | With provenance | Details for pydecodr-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydecodr-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pydecodr-0.1.4-py3-none-any.whl |
Total release size: 100.5 kB
Release files / pydecodr-0.1.4.tar.gz
| Download URL | pydecodr-0.1.4.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dfaaf8a36fa51c0183c8acc16dade86ce62bbdf37d04c11383883d8f8b4da9a
|
|
BLAKE2b-256 checksum How to use checksums |
96ab465b3cebb75e5283baf8e18b2cec1d1d18d66556cc5f05da66cc8abdb244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 9, 2025.
Transparency logRelease files / pydecodr-0.1.4-py3-none-any.whl
| Download URL | pydecodr-0.1.4-py3-none-any.whl |
|---|---|
| Size | 65.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e10482007d31f660d09b3a4ed2f4daf1a5898aa1d129dcc6aee5c642afcfa03
|
|
BLAKE2b-256 checksum How to use checksums |
daa4fbda7d0335311c8cbc6718eb15a1abde07ac36c4873c5ac964b1dbc23875
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 9, 2025.
Transparency logSecurity for pydecodr 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 pydecodr-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 9, 2025.
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.