Skip to main content

Your computer is a hardware noise observatory. Harvests entropy from 47 unconventional hardware sources.

Project description

openentropy (Python)

Hardware entropy for Python, backed by Rust (PyO3 + maturin build).

OpenEntropy harvests randomness from multiple physical noise sources on your machine (timing jitter, thermal effects, scheduler variance, I/O timing, and more), then exposes:

  • EntropyPool.auto() for source discovery
  • get_random_bytes() for conditioned output
  • get_bytes(..., conditioning="raw|vonneumann|sha256") for research/analysis workflows
  • run_all_tests() + calculate_quality_score() for statistical checks

Install

pip install openentropy

Quick start

from openentropy import EntropyPool, detect_available_sources

sources = detect_available_sources()
print(f"{len(sources)} sources available")

pool = EntropyPool.auto()
data = pool.get_random_bytes(64)
print(data.hex())

Docs

Project details


Download files

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

Source Distribution

openentropy-0.5.1.tar.gz (142.3 kB view details)

Uploaded Source

Built Distribution

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

openentropy-0.5.1-cp312-cp312-manylinux_2_39_x86_64.whl (858.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

Details for the file openentropy-0.5.1.tar.gz.

File metadata

  • Download URL: openentropy-0.5.1.tar.gz
  • Upload date:
  • Size: 142.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.2

File hashes

Hashes for openentropy-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b406d0fb429caf0303fa522dd3e170aeccc95785bf465725759e92f2d4dbf60f
MD5 10c95e7e29dfb5fc5cda332af32b2e29
BLAKE2b-256 88a66217b46f120344c997eb9d9124216943082731aa65cbff4c1bf4d104e0ab

See more details on using hashes here.

File details

Details for the file openentropy-0.5.1-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for openentropy-0.5.1-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 db7bf89e2449d43525029a3fa87f9cd45c080401f2bf989447f4e1cd275ce5a5
MD5 139324a19520e2c3afbf64391d7e1ab0
BLAKE2b-256 87a3ee8305e9eb4243d787be085c5df5c241b7008607801b688da209b40adeda

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