Post-quantum cryptography library with built-in plausible deniability.
Project description
Pycryptox
Post-quantum cryptography library for Python.
Four protocols, one goal: protect your data against today's threats and tomorrow's quantum computers.
| Protocol | What it does |
|---|---|
| PURPLE | Encrypt with a password |
| BLUE | Encrypt with asymmetric keys + plausible deniability |
| RED | Encrypt with a threshold (t-of-n) |
| YELLOW | Steganography (coming soon) |
import pycryptox as crx
keys = crx.blue.genkeys("1")
bundle = crx.blue.encrypt("1", keys["gpubkey"], xmsg="real", ymsg="decoy")
crx.blue.decrypt("1", keys["xprivkey"], bundle) # → "real"
crx.blue.decrypt("1", keys["yprivkey"], bundle) # → "decoy"
Prerequisites
Pycryptox uses liboqs (via liboqs-python) for all ML-KEM-512 post-quantum operations. This dependency is not installed automatically because the current PyPI release of liboqs-python is broken — it must be installed from GitHub:
pip install git+https://github.com/open-quantum-safe/liboqs-python@0.12.0
This requires a C compiler, CMake, and Git. The first import oqs automatically downloads and compiles the liboqs C library (~2-5 min, one-time only). See installation guide for platform-specific instructions.
Installation
pip install pycryptox
Documentation
Tests
🧪 Test suite — 162 tests covering all protocols and keystores.
cd pycryptox/tests
python run_all.py
Credits
See CREDITS.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycryptox-1.0.1.tar.gz.
File metadata
- Download URL: pycryptox-1.0.1.tar.gz
- Upload date:
- Size: 64.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304a2fdcf549f458000616d70259d318f82da1a701c00263f145efaa4ef4ef75
|
|
| MD5 |
06ddb7e7a9fdbcd31b3de369ac36b33b
|
|
| BLAKE2b-256 |
ad1abc5cb65f9eeb46a4bfcb5d65241a8ca532a22c58f99139d645b74dd9a1b0
|
File details
Details for the file pycryptox-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pycryptox-1.0.1-py3-none-any.whl
- Upload date:
- Size: 74.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e85237c4fca5a5bf83081ff9677a740d2027e1512607a699cd2b89afd6fe1580
|
|
| MD5 |
de0dee52e260eb53edc4e68c3a6a36e6
|
|
| BLAKE2b-256 |
fff1c3d22aa7e2537329babe55c3aa1e61305b8d5ef799e7d679a680645f3027
|