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/qse-group/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.1-cp38-abi3-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.8+Windows x86-64

qrek-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

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

qrek-0.0.1-cp38-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

Hashes for qrek-0.0.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c97713c0465e76870350ef9c573cbf687861b2fcc5fa958789fba640aef3c2f2
MD5 3b6427949f166c026ce467c488e2cf18
BLAKE2b-256 fcdc0ffd610b242a4de91372585a03bcca7d29b5a1549c0d7dfc11fa62efd9ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qrek-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 21a15aa6b1fa0cba4883f851291bb3c5ab1c03156e09d7655f4fc978ee61c59e
MD5 96280d0680fd3de4099f32640700b2ca
BLAKE2b-256 9b81368d3c6b352209af458b1daacbae0e08cccf5b36b2873e78562e21dcfc23

See more details on using hashes here.

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

Hashes for qrek-0.0.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 604e2c7367d0ff09c04ba18bedbaa8dc03cd30a8f7c6d9784a9c0237edcac5f5
MD5 bdce18cfa374f4a24e16feac1243e392
BLAKE2b-256 bf3b3b38df656eff58594e7fbe67ef3825c5a4714dcbb9d32ce1964292341505

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