OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: Vladimir on November 26, 2026, 02:30:35 PM

Title: [How-To / DIY] $3 Hardware True Random Number Generator (ESP8266+CP2102)+Widget
Post by: Vladimir on November 26, 2026, 02:30:35 PM
[How-To / DIY] $3 Hardware True Random Number Generator (ESP8266+CP2102)+Widget

Hi everyone,

If you are running OPNsense on legacy or de-bloated hardware without dedicated hardware RNG instructions (RDRAND/RDSEED) or a TPM — such as my Sandy Bridge with Intel ME stripped via me_cleaner — FreeBSD's Fortuna CSPRNG relies solely on software-harvested system events and interrupt timings. To add an independent, physical noise source to the entropy pool without buying commercial USB entropy keys, I built a ~$3 DIY Hardware TRNG using an ESP8266 and a CP2102 USB-UART bridge, complete with BearSSL SHA-256 conditioning and a zero-wear RAM dashboard widget for OPNsense.

GitHub Repository: https://github.com/Vladimir7xr/opnsense-esp8266-trng



Key Features & Architecture
Verification & Diagnostic Tools
Wiring (3 Wires Only)