Quantum-Resilient Encryption Kit - Python SDK
Project description
qREK Python SDK
Python bindings for qREK - Quantum-Resilient Encryption Kit.
Installation
pip install qrek
Quick Start
Requires: QREK_API_TOKEN environment variable set with your QSE API token.
import os
from qrek_python import PyQrekClient
# Set API token (or export QREK_API_TOKEN environment variable)
# os.environ['QREK_API_TOKEN'] = 'your-qse-api-token'
# Initialize client (uses QREK_API_TOKEN from environment)
client = PyQrekClient() # Or: PyQrekClient('your-token')
# Generate AES-256 key with REAL quantum entropy
aes_result = client.generate_aes_key()
print(f"AES Key: {aes_result['key_base64']}")
print(f"Entropy ID: {aes_result['entropy_id']}")
print(f"Signature verified: {aes_result['signature_verified']}")
# Generate RSA keypair
rsa_result = client.generate_rsa_keypair(4096)
print(f"Private Key:\n{rsa_result['private_key_pem']}")
Features
- AES-256 key generation with real quantum entropy from QSE API
- RSA (2048/3072/4096) keypair generation
- Ed25519 signature verification on all entropy
- File encryption with provenance tracking
- Stream encryption for large files
- Full provenance tracking (WHO/WHEN/WHY/ENTROPY_ID)
- 100% production-ready - real QSE API integration
Documentation
See main repository: https://github.com/qse-group/qrek
License
MIT OR Apache-2.0
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 Distributions
Built Distributions
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 qrek-0.0.1-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: qrek-0.0.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c97713c0465e76870350ef9c573cbf687861b2fcc5fa958789fba640aef3c2f2
|
|
| MD5 |
3b6427949f166c026ce467c488e2cf18
|
|
| BLAKE2b-256 |
fcdc0ffd610b242a4de91372585a03bcca7d29b5a1549c0d7dfc11fa62efd9ef
|
File details
Details for the file qrek-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: qrek-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21a15aa6b1fa0cba4883f851291bb3c5ab1c03156e09d7655f4fc978ee61c59e
|
|
| MD5 |
96280d0680fd3de4099f32640700b2ca
|
|
| BLAKE2b-256 |
9b81368d3c6b352209af458b1daacbae0e08cccf5b36b2873e78562e21dcfc23
|
File details
Details for the file qrek-0.0.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: qrek-0.0.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604e2c7367d0ff09c04ba18bedbaa8dc03cd30a8f7c6d9784a9c0237edcac5f5
|
|
| MD5 |
bdce18cfa374f4a24e16feac1243e392
|
|
| BLAKE2b-256 |
bf3b3b38df656eff58594e7fbe67ef3825c5a4714dcbb9d32ce1964292341505
|