Skip to main content

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/qsegroup/qREK

License

MIT OR Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qrek-0.0.2-cp38-abi3-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.8+Windows x86-64

qrek-0.0.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

qrek-0.0.2-cp38-abi3-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

qrek-0.0.2-cp38-abi3-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file qrek-0.0.2-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: qrek-0.0.2-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.13.7

File hashes

Hashes for qrek-0.0.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 10343dc948501ecf40a438d8cdc1722a71b41ae5016c1e6a21f68c5581c9d64e
MD5 e337bf1c7b47b01f46944554e12c5a7c
BLAKE2b-256 1b7bab7b0825bc4963681e94269edcbf98103b1386875a04a8346b11ef8454a6

See more details on using hashes here.

File details

Details for the file qrek-0.0.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qrek-0.0.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a13d26a1e6b83a7c2a8deb837e1583be0dd37411c29d7fb7b2fff3bb2e8209e
MD5 a210baa2d3956244b5724c738db30da5
BLAKE2b-256 ab8101d101be9f525f1bb2872a36ce9bfc913150742ceea9027c7361bacbfdd0

See more details on using hashes here.

File details

Details for the file qrek-0.0.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: qrek-0.0.2-cp38-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.8+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qrek-0.0.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6055a1add9d0d7bb7e5429941fdfeb65656bf7595f54b5c434d87af6e4a3ec5e
MD5 41ab08af4d0d825c84f23655457ae011
BLAKE2b-256 a96235bdec526fdd970679865d2667cfbbf3c72e56cbb723e4ec217266ed6d2d

See more details on using hashes here.

File details

Details for the file qrek-0.0.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for qrek-0.0.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c31a032e3d63c0ced9e3edb05bcdf49f686dbf0a8af6f1812795f98b678c3a16
MD5 589674ed587787e5b72ee20c096d16f2
BLAKE2b-256 6a1f627fa78a3d35ae2ae30b832c7396349ad04f4bea416d557e6b7648100920

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page