Skip to main content

Enceladus QuantumGuard (enceladus-quantumguard)

PyPI Version Python Versions Platform PQC Standard

Enceladus QuantumGuard is a high-performance, drop-in Post-Quantum Cryptography (PQC) shim library designed to protect modern and legacy Python applications against quantum computing threats (Store-Now-Decrypt-Later attacks).

It provides immediate, quantum-resilient encryption by augmenting or emulating standard RSA workflows with NIST FIPS 203 ML-KEM-768 (Kyber) and AES-256-GCM, bundled with optimized native binaries powered by Open Quantum Safe (liboqs).


Key Features

  • NIST FIPS 203 Compliant: Powered by ML-KEM-768 (Kyber768) delivering 192-bit quantum security strength.
  • Dual-Hybrid Mode: Combines classical RSA-3072 (NIST SP 800-131A Rev 2) with post-quantum ML-KEM-768 for defense-in-depth. If either cipher holds, your data remains secure.
  • Payload Encryption: Bulk payload encrypted with AES-256-GCM authenticated encryption and HKDF domain separation (RFC 5869).
  • Zero-Code-Refactor Shims: Drop-in monkey-patching and compatibility layers for:
    • cryptography (cryptography.hazmat.primitives.asymmetric.rsa)
    • rsa (Python-RSA)
    • pycryptodome (Crypto.PublicKey.RSA and Crypto.Cipher.PKCS1_OAEP)
  • Self-Contained Native Binaries: Pre-compiled and bundled liboqs C shared libraries across Linux (manylinux x86_64), macOS (ARM64/x86_64), and Windows (x86_64). No manual C compilation required.

Installation

Install the pre-built wheel directly from PyPI:

pip install enceladus-quantumguard

Supported Python versions: Python 3.10, 3.11, 3.12, 3.13, 3.14 on Linux, macOS, and Windows.


Quickstart

1. Direct High-Level API

QuantumGuard provides simple functions to generate keys and perform hybrid PQC encryption/decryption:

from quantumguard_pqc import (
    generate_pqc_kem_keypair,
    pqc_encrypt_payload,
    pqc_decrypt_payload,
    pack_ciphertext,
    unpack_ciphertext,
)

# 1. Generate keypair (Dual-Hybrid RSA-3072 + ML-KEM-768)
public_key, private_key = generate_pqc_kem_keypair()

# 2. Encrypt plaintext payload
message = b"Confidential financial transaction data"
kem_ct, rsa_ct, nonce, encrypted_payload = pqc_encrypt_payload(message, public_key)

# 3. Pack into transportable wire format
wire_data = pack_ciphertext(kem_ct, rsa_ct, nonce, encrypted_payload)

# 4. Decrypt directly using the private key
decrypted_message = pqc_decrypt_payload(wire_data, private_key)
assert decrypted_message == message
print("Decryption successful:", decrypted_message.decode())

2. Drop-in Shim for cryptography

Replace standard cryptography.hazmat.primitives.asymmetric.rsa calls transparently:

from quantumguard_pqc.cryptography_patch import (
    generate_private_key,
    CryptographyPrivateKey,
    CryptographyPublicKey,
)

# Generate a quantum-resistant keypair matching the cryptography API
private_key = generate_private_key(public_exponent=65537, key_size=2048)
public_key = private_key.public_key()

# Encrypt
plaintext = b"Secure message over insecure channel"
ciphertext = public_key.encrypt(plaintext, padding=None)

# Decrypt
decrypted = private_key.decrypt(ciphertext)
assert decrypted == plaintext

3. Drop-in Shim for rsa

Seamlessly drop into existing Python rsa module workflows:

import quantumguard_pqc.rsa_patch as rsa

# Generate keys using the standard rsa.newkeys API
public_key, private_key = rsa.newkeys(2048)

# Encrypt and Decrypt
ciphertext = rsa.encrypt(b"Hello Post-Quantum World!", public_key)
plaintext = rsa.decrypt(ciphertext, private_key)

assert plaintext == b"Hello Post-Quantum World!"

4. Drop-in Shim for pycryptodome

Replace Crypto.PublicKey.RSA and Crypto.Cipher.PKCS1_OAEP:

from quantumguard_pqc.pycryptodome_patch import RSA, PKCS1_OAEP

# Generate key
key = RSA.generate(2048)
public_key = key.publickey()

# Encrypt with PKCS1_OAEP interface
cipher = PKCS1_OAEP.new(public_key)
ciphertext = cipher.encrypt(b"Encrypted with QuantumGuard")

# Decrypt
decipher = PKCS1_OAEP.new(key)
plaintext = decipher.decrypt(ciphertext)
assert plaintext == b"Encrypted with QuantumGuard"

Cryptographic Architecture

               +-------------------------------------------+
               |            Plaintext Message              |
               +-------------------------------------------+
                                     |
               +---------------------+---------------------+
               |                                           |
               v                                           v
      [ML-KEM-768 Encap]                         [RSA-3072 Encrypt]
               |                                           |
       Shared Secret (PQC)                       Shared Secret (Classical)
               |                                           |
               +---------------------+---------------------+
                                     |
                                     v
                       [HKDF-SHA256 Context Binding]
                                     |
                                     v
                           Derived 256-bit Key
                                     |
                                     v
                          [AES-256-GCM AEAD]
                                     |
                                     v
                     +-------------------------------+
                     | Wire Ciphertext: [HYB Header] |
                     |   + KEM Ciphertext            |
                     |   + RSA Ciphertext            |
                     |   + GCM Nonce                 |
                     |   + AES Tagged Payload        |
                     +-------------------------------+

Security Modes

  • Dual-Hybrid Mode (USE_HYBRID = True, default): Combines NIST FIPS 203 ML-KEM-768 with classical 3072-bit RSA. Both secrets are derived through HKDF (RFC 5869) with application context binding (quantumguard-hybrid-v1).
  • Pure PQC Mode (USE_HYBRID = False): Operates purely on ML-KEM-768 key encapsulation for systems mandating strict elimination of classical primitives.

Building from Source

To build platform wheels locally:

git clone https://github.com/Enceladus-Ventures/quantumguard-pqc.git
cd quantumguard-pqc

pip install setuptools wheel cython build
python3 build_wheel.py

License

Enceladus QuantumGuard is released under the Apache License 2.0. Bundled liboqs binaries are distributed under the MIT License from the Open Quantum Safe project.

Metadata

Release files for enceladus-quantumguard 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for enceladus-quantumguard 1.1.4
File Actions
enceladus_quantumguard-1.1.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for enceladus_quantumguard-1.1.4-cp314-cp314-win_amd64.whl
enceladus_quantumguard-1.1.4-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.26+ x86-64 Details for enceladus_quantumguard-1.1.4-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
enceladus_quantumguard-1.1.4-cp314-cp314-macosx_26_0_universal2.whl CPython 3.14 CPython 3.14 macOS 26.0+ universal2 (ARM64, x86-64) Details for enceladus_quantumguard-1.1.4-cp314-cp314-macosx_26_0_universal2.whl
enceladus_quantumguard-1.1.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for enceladus_quantumguard-1.1.4-cp313-cp313-win_amd64.whl
enceladus_quantumguard-1.1.4-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.26+ x86-64, Linux glibc 2.28+ x86-64 Details for enceladus_quantumguard-1.1.4-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
enceladus_quantumguard-1.1.4-cp313-cp313-macosx_26_0_universal2.whl CPython 3.13 CPython 3.13 macOS 26.0+ universal2 (ARM64, x86-64) Details for enceladus_quantumguard-1.1.4-cp313-cp313-macosx_26_0_universal2.whl
enceladus_quantumguard-1.1.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for enceladus_quantumguard-1.1.4-cp312-cp312-win_amd64.whl
enceladus_quantumguard-1.1.4-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.26+ x86-64 Details for enceladus_quantumguard-1.1.4-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
enceladus_quantumguard-1.1.4-cp312-cp312-macosx_26_0_universal2.whl CPython 3.12 CPython 3.12 macOS 26.0+ universal2 (ARM64, x86-64) Details for enceladus_quantumguard-1.1.4-cp312-cp312-macosx_26_0_universal2.whl
enceladus_quantumguard-1.1.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for enceladus_quantumguard-1.1.4-cp311-cp311-win_amd64.whl
enceladus_quantumguard-1.1.4-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.26+ x86-64, Linux glibc 2.28+ x86-64 Details for enceladus_quantumguard-1.1.4-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
enceladus_quantumguard-1.1.4-cp311-cp311-macosx_26_0_universal2.whl CPython 3.11 CPython 3.11 macOS 26.0+ universal2 (ARM64, x86-64) Details for enceladus_quantumguard-1.1.4-cp311-cp311-macosx_26_0_universal2.whl
enceladus_quantumguard-1.1.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for enceladus_quantumguard-1.1.4-cp310-cp310-win_amd64.whl
enceladus_quantumguard-1.1.4-cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.26+ x86-64, Linux glibc 2.28+ x86-64 Details for enceladus_quantumguard-1.1.4-cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
enceladus_quantumguard-1.1.4-cp310-cp310-macosx_26_0_universal2.whl CPython 3.10 CPython 3.10 macOS 26.0+ universal2 (ARM64, x86-64) Details for enceladus_quantumguard-1.1.4-cp310-cp310-macosx_26_0_universal2.whl

Total release size: 192.0 MB

Release files / enceladus_quantumguard-1.1.4-cp314-cp314-win_amd64.whl

Download URL enceladus_quantumguard-1.1.4-cp314-cp314-win_amd64.whl
Size 4.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
af701f24bacc7ba723e9bbf34102f5dbb794271128bd463ebed5548cc353bc7f
BLAKE2b-256 checksum
How to use checksums
3fcf9b6d2750440b1b8248fdb983964ef1007e453e5ee4d0927b3b63e7f7cf37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

Download URL enceladus_quantumguard-1.1.4-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Size 16.5 MB
Tags CPython 3.14 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b1b1919dd2d35cd99eb484b8b66f707f67c2dc9a30fb8a635488872455e10c74
BLAKE2b-256 checksum
How to use checksums
46a97de0263abd0d49217ae6dac4bdd4b8335105281154e94aa52b180184fa00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp314-cp314-macosx_26_0_universal2.whl

Download URL enceladus_quantumguard-1.1.4-cp314-cp314-macosx_26_0_universal2.whl
Size 17.2 MB
Tags CPython 3.14 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
c3558d08777907eac5dc6a0df2e6f9da39f666fed38bf9797983a1ca7631d71b
BLAKE2b-256 checksum
How to use checksums
283cd7a09098a8ea44869f9a8f33aee687b79e0306f5c06e834c4a27ac6dca8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp313-cp313-win_amd64.whl

Download URL enceladus_quantumguard-1.1.4-cp313-cp313-win_amd64.whl
Size 4.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
c3fc19e174d0db1e9ac4e0cd430ba09b37ee66ad066206b0d1a4f7c4009a6973
BLAKE2b-256 checksum
How to use checksums
70815cc0bebc069c049a0b97a70ff93c36cd6563643fc227aa8ae74a316d363d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

Download URL enceladus_quantumguard-1.1.4-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Size 16.6 MB
Tags CPython 3.13 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
de753ebb59464a917984704c64a9fa22d6979b05267d2a89e9f77ca720999a58
BLAKE2b-256 checksum
How to use checksums
2943147153c31a66a72df3d0282fdb48ade7fd8f4d09569c0731766060d737f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp313-cp313-macosx_26_0_universal2.whl

Download URL enceladus_quantumguard-1.1.4-cp313-cp313-macosx_26_0_universal2.whl
Size 17.2 MB
Tags CPython 3.13 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
60467f09a4c424399041e673369862677aebc934b4efd25dfb3d119fd4b869b0
BLAKE2b-256 checksum
How to use checksums
55f3b1ab544afb9e8e9a7959bd082e23aff5303a3b58290185181c04ed721d2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp312-cp312-win_amd64.whl

Download URL enceladus_quantumguard-1.1.4-cp312-cp312-win_amd64.whl
Size 4.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
23f5d43eb89b85b82843c691bdd6b2d9d2984e7979e7d4bf68205b1aa4194258
BLAKE2b-256 checksum
How to use checksums
508dfe9735e5ab8a1fe54342f4a9ac54003b7784f222e4136abd6b3b651f41ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

Download URL enceladus_quantumguard-1.1.4-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Size 16.6 MB
Tags CPython 3.12 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d416799d497cef6e18a560d2e28d858d85c9ae301e7a0453b0e7e3522c080aef
BLAKE2b-256 checksum
How to use checksums
46e0d1f0c2bcc0c942e5c415e090e3fc97ceb252f608eae84940876f7d4998b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp312-cp312-macosx_26_0_universal2.whl

Download URL enceladus_quantumguard-1.1.4-cp312-cp312-macosx_26_0_universal2.whl
Size 17.2 MB
Tags CPython 3.12 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a26422c759741c61d72f9781833e9293dbd7e7262fa48616e5e4309b2be1bb0a
BLAKE2b-256 checksum
How to use checksums
26d11ae3c2424e5d27d8d478c21a88098981ba504e30d5d27ee4b8fe81d0381a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp311-cp311-win_amd64.whl

Download URL enceladus_quantumguard-1.1.4-cp311-cp311-win_amd64.whl
Size 4.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
04e21154c674b297765e3688932a5a2d13b7e0953af47479bb0964d8158b0fed
BLAKE2b-256 checksum
How to use checksums
36453c64ce0b3702bc94336f9f5fa1a09fd430da4b6d249484197b5f9b936b25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

Download URL enceladus_quantumguard-1.1.4-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Size 16.5 MB
Tags CPython 3.11 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f1afbdec2c6b79afa3d4bda91401c6c8654840c011eee40ef71fae969c790214
BLAKE2b-256 checksum
How to use checksums
048f01200180006afd748343d63aadad5470b2aed2800d8ff8a3d597eeda3aed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp311-cp311-macosx_26_0_universal2.whl

Download URL enceladus_quantumguard-1.1.4-cp311-cp311-macosx_26_0_universal2.whl
Size 17.2 MB
Tags CPython 3.11 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
68c2a882814819e7907537b81e0ffb5b2115cbb187c41e7eff496896bf3ad6b6
BLAKE2b-256 checksum
How to use checksums
0cf277a9f8c2df9e409383861fd0ab5b44f48e04fb4633cb430c1e02249fb9f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp310-cp310-win_amd64.whl

Download URL enceladus_quantumguard-1.1.4-cp310-cp310-win_amd64.whl
Size 4.7 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
86962c47800b9e9de5d7d0a0100ef2d0d6755de78542d6cbed0605393e17bfe5
BLAKE2b-256 checksum
How to use checksums
92954eddf7ef115c8f80331078951a1de4320db6dd2e9405ad8b076b4c82a97f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

Download URL enceladus_quantumguard-1.1.4-cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Size 16.5 MB
Tags CPython 3.10 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5b9bef20dae886620cce9cff61b11a736eb3bc47d3f7daf8682c8869bc6c3198
BLAKE2b-256 checksum
How to use checksums
a12396253c0408f23f16b69110cbf532cea123c3121e8ae5317776af52e6718e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / enceladus_quantumguard-1.1.4-cp310-cp310-macosx_26_0_universal2.whl

Download URL enceladus_quantumguard-1.1.4-cp310-cp310-macosx_26_0_universal2.whl
Size 17.2 MB
Tags CPython 3.10 macOS 26.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a93fd131519f1b69d17f28cb50affe632acda514004da3a92460fe5deb633e69
BLAKE2b-256 checksum
How to use checksums
a516eb8d4a06d4ac359f95b8fd6241a6a77baea74348a5bc77803ba69fe1ea3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for enceladus-quantumguard 1.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.

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page