Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

OpenEntropy Examples

Rust Examples

Example Description
rust/basic.rs Simple entropy collection — auto-detect sources, get random bytes, print as hex
rust/raw_vs_conditioned.rs Compare Raw, VonNeumann, and Sha256 conditioning modes side by side
rust/stream_to_file.rs Collect entropy and write raw bytes to a file
rust/chaos_analysis.rs Run five chaos theory methods on raw entropy to distinguish randomness from deterministic chaos

Running Rust Examples

cargo run --example basic
cargo run --example raw_vs_conditioned
cargo run --example stream_to_file
cargo run --example chaos_analysis

Python Examples

Example Description
python/basic.py Create an entropy pool, collect bytes, print health stats
python/raw_entropy.py Get raw unconditioned bytes and compare with conditioned output
python/named_pipe.py Feed hardware entropy to any program via a named pipe (FIFO)

Running Python Examples

First, build the Python bindings:

pip install maturin
maturin develop --release

Then run any example:

python examples/python/basic.py
python examples/python/raw_entropy.py
python examples/python/named_pipe.py