Skip to main content

Your computer is a hardware noise observatory. Harvests entropy from 60+ hardware noise sources.

Project description

openentropy (Python)

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

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

  • detect_available_sources() for source discovery
  • get_source_bytes() and get_source_raw_bytes() for single-source sampling
  • 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()
source = sources[0]["name"]
data = pool.get_source_bytes(source, 64, conditioning="sha256")
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.12.2.tar.gz (274.5 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.12.2-cp312-cp312-manylinux_2_39_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

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

File metadata

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

File hashes

Hashes for openentropy-0.12.2.tar.gz
Algorithm Hash digest
SHA256 091c521fef2d0b05b66a834ec2efd9edd9d0bb507c46528e9d456003c4e5c53f
MD5 2b0ab8d5a4957c739b4e349514127913
BLAKE2b-256 76dc1afd739238f1f39506a246a615845719dd7c93fddbc6be7cd6abfa7d2688

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openentropy-0.12.2-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 56587bbbfec9cd1aa958f4a572712c297e2f5afe3461b1ac417c173c3cee30b4
MD5 55db31dc58d47366ddd7b5fdb5b8dda2
BLAKE2b-256 bdde4ca41be42179c68c276fcb1a676090dd8295e2ccfe44ed2ad4470d7d1189

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