| Crates.io | qtoken |
| lib.rs | qtoken |
| version | 0.1.0 |
| created_at | 2026-01-03 01:01:52.750512+00 |
| updated_at | 2026-01-03 01:01:52.750512+00 |
| description | Quantum-Proof Token Library using NIST-standardized Post-Quantum Cryptography (ML-KEM, ML-DSA) |
| homepage | |
| repository | https://github.com/Moaisus-admin/qtoken |
| max_upload_size | |
| id | 2019417 |
| size | 805,475 |
QToken is a high-performance, quantum-resistant authentication and encryption library written in Rust with Python bindings. It provides a secure alternative to standard token formats (like JWT and Fernet) by utilizing NIST-standardized Post-Quantum Cryptography (PQC).
QToken is built on a layered architecture designed for security, performance, and ease of use.
The heart of the library is the qtoken crate, providing type-safe implementations of the protocols.
pqcrypto crates, which provide Rust bindings to the reference PQClean C implementations.
Header || Payload || Signature (Base64URL). Similar to JWS but with Dilithium.Header.KEM_Ciphertext.Nonce.Symmetric_Ciphertext.qtoken-python)A Python extension module built with PyO3 and Maturin.
sign_token, encrypt_token) that feels native.Unlike traditional libraries (RSA, ECDSA) which will be broken by future quantum computers (Shor's algorithm), QToken is secure against both classical and quantum attacks. It defends against "Harvest Now, Decrypt Later" attacks immediately.
We don't use experimental crypto. We use the finalized NIST FIPS 203 (ML-KEM) and FIPS 204 (ML-DSA) algorithms, ensuring compliance with future government and industry standards.
Pure asymmetric encryption is slow and limited in size. QToken uses a Hybrid Scheme (KEM + Symmetric AEAD).
We abstracted the complex math. You don't need to know lattice-based cryptography.
sign(), verify(), encrypt(), decrypt().[dependencies]
qtoken = { path = "qtoken" }
pip install qtoken_python