encrypt&decrypt
Every encoding and cipher from the first one (~1500 BC) to the present day — 58 languages, one dead-simple syntax, zero hard dependencies.
Install
pip install encrypt-and-decrypt
Optional extra — real hardware-accelerated primitives for AES / Fernet / 3DES / ChaCha20 / RSA (otherwise a pure-Python fallback is used):
pip install "encrypt-and-decrypt[fast]"
Then:
from encrypt_and_decrypt import Encode, Decrypt
Usage
from encrypt_and_decrypt import Encode, Decrypt
Encode(Text="Hello", Language="caesar") # 'Khoor'
Decode("Khoor", Language="caesar") # 'Hello'
Decrypt(Encode(Text="Hello", Language="base64")) # chained syntax works
Decrypt("Khoor") # Language="" -> auto-detect
Optional parameters:
| Parameter | Meaning |
|---|---|
Text |
input string (leave empty to read from FilePath) |
Language |
any id from list_languages(); "" on Decrypt = auto-detect |
FilePath |
read input from file (Text empty) / write result to file (Text given) |
Key |
key for keyed ciphers (Vigenere, AES, RSA, ...) - defaults are built in |
Key2 |
second key (ADFGVX, Four-square, Nihilist) |
Period |
period for Bifid / Trifid (default 5) |
Envelope |
True -> self-describing output `<<<ED |
Aliases: Encode = Encrypt, Decrypt = Decode. Hashes (md5, sha256, ...)
are one-way and cannot be decrypted.
Explore all 58 languages
from encrypt_and_decrypt import usage, list_languages
usage() # printed cheat-sheet, grouped by era
list_languages() # machine-readable catalogue
Eras covered: Ancient (Scytale, Caesar, Atbash, Polybius, Tap code) → Classical (Vigenère, Beaufort, Autokey, Affine, Bacon, Nihilist, Rail Fence, Playfair, Four-square, Hill, Bifid, Trifid, ADFGVX) → Telegraph & Machine (Morse, Braille, Baudot, NATO, Enigma I) → Digital Age (Binary, Octal, Decimal, Hex, Base32/58/64/85, Ascii85, URL, HTML, Unicode escapes, Quoted-Printable, UUEncode) → Novelty (DNA, Emoji, Pig Latin, Leet) → Modern (XOR, RC4, AES-256, Fernet, 3DES, ChaCha20-Poly1305, RSA) → Hashes (CRC32, MD5, SHA-1/256/512, SHA-3, BLAKE2).
Dependencies
None required. If the cryptography package is installed, AES / Fernet /
3DES / ChaCha20 / Poly1305 use real hardware-accelerated primitives;
otherwise a self-contained pure-Python fallback keeps everything working.
Metadata
Release files for encrypt-and-decrypt 1.0.0
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 |
|---|---|---|---|---|
| encrypt_and_decrypt-1.0.0.tar.gz | 34.2 kB | Without provenance | Details for encrypt_and_decrypt-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| encrypt_and_decrypt-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for encrypt_and_decrypt-1.0.0-py3-none-any.whl |
Total release size: 73.2 kB
Release files / encrypt_and_decrypt-1.0.0.tar.gz
| Download URL | encrypt_and_decrypt-1.0.0.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26f57917952d3a87c31ead3466ee8b6d065400ee2889970208a66e9325108ae3
|
|
BLAKE2b-256 checksum How to use checksums |
87b51148a8627cb24c8ee0e95adec095e3db8ce9c1cdc9e594b1908ed1bcdd54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / encrypt_and_decrypt-1.0.0-py3-none-any.whl
| Download URL | encrypt_and_decrypt-1.0.0-py3-none-any.whl |
|---|---|
| Size | 39.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b76e14d2f834d035fd5dd22eff908a11225f9bef6a8bb7e0998dcb8fc4af34a
|
|
BLAKE2b-256 checksum How to use checksums |
87a4ea6498f7dbae45dc7460b86d54a79c8044ff98a929ed27ed33d1662b7729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for encrypt-and-decrypt 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.