Is there a TRNG Server project to serve bits from trueRNG across my LAN? I didn’t see anything when searching, but maybe I just don’t know what to look for.
In my imagination of such a server, a client program could hit an open server port with a binary request and get a binary packet of some sort back with the random data. There might also be a way to get in text mode and get some random data displayed in a web browser for convenience or testing.
Or am I thinking about it incorrectly so such a server wouldn’t be useful? I’m sort of thinking about a local random.org or ANU quantum RNG server, I know.
While I don’t know of any 100% perfect projects for this, there are some out there. A quick google shows Pollen — https://github.com/dustinkirkland/pollen which appears to do this, but they it would need to be modified slightly to read from the TrueRNG dongle instead of their pseudo random number generator.
Rolling your own should be fairly easy too in the same manner. Using say apache with SSL enabled, you can make a https connection to your server’s cgi (perl/php/what have you), and POST the length of entropy you want, then fetch the number of bytes from the device or /dev/random (your mixed pool being seeded by TrueRNG), and return that back encoded either binary or hex/json or even printable numbers like random.org. Then use that entropy how you want… or insert it into that machine’s /dev/random pool (this part is a little more tricky). I could see someone rolling this engine out fairly easy.
Since /dev/random and /dev/TrueRNG are both character devices, they should be fairly easy to deal with just like reading a file.