An Entropy Gathering Daemon (EGD) written in Python 3.
EGD requires Python 3.2 or later.
The EGD daemon can be controlled through various command-line options:
egd --start # Start the daemon
egd --stop # Stop the daemon gracefully
egd --status # Check daemon status and entropy statistics
egd --start --force # Start daemon even if lock file exists
# Get 32 bytes of entropy (256 bits, suitable for an AES key)
egd --getentropy 32 > key.bin
# Get 64 bytes of entropy (512 bits)
egd --getentropy 64 > large_key.bin
Note: If insufficient entropy is available, fewer bytes than requested may be returned to maintain quality.
egd --persist # Manually save entropy pool to disk
-
System Boot
- Start the daemon:
egd --start
- Start the daemon:
-
Regular Operation
- Check status:
egd --status
- Request entropy:
egd --getentropy N
- Check status:
-
System Shutdown
- Stop daemon:
egd --stop
- Stop daemon:
-
Cryptographic Key Generation
egd --getentropy 32 > crypto.key
-
Random Number Generator Seeding
egd --getentropy 16 > rng_seed.bin
-
System Maintenance
egd --persist # Backup entropy pool egd --stop # Stop daemon # ... perform maintenance ... egd --start # Restart daemon
Fran Litterio
flitterio -at- gmail -dot- com