Rewrite README to reflect the actual pipeline (frame -> health check -> SHA-256 -> HMAC-DRBG -> emit), document all entropy.py flags, the HTTP service endpoints and env vars, container build/run, Kubernetes notes, and the remote-consumption rngd flow. Fix the notes.md typos and align its commands with the new --out flag. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
589 B
589 B
In order to use this there needs to be an IP webcam with a stream available to use as the randomness generating source.
Suggest reviewing the code to see how it should be provided to the script.
generate entropy via a pipe file
mkfifo /tmp/entropy.fifo python3 entropy.py --loop --bit 512 --out /tmp/entropy.fifo &
Use the generated entropy
sudo rngd -f -W 90% -x rdrand -x jitter -x pkcs11 -x rtlsdr -O namedpipe:path:/tmp/entropy.fifo -O namedpipe:timeout:2
Or serve it over HTTP for remote systems (see README -> HTTP Service)
uvicorn api:app --host 0.0.0.0 --port 8000