This topic contains 3 replies, has 2 voices, and was last updated by  Quadko 7 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1746

    Quadko
    Member

    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.

    #1751

    Ubld.it Staff
    Moderator

    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.

    Good luck!

    #1753

    Ubld.it Staff
    Moderator

    Here is a quick example using python of how this could work if you wanted to implement a simple solution.

    https://cockrum.net/code.html

    #1756

    Quadko
    Member

    Very cool, thanks for the suggestions and guidance!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.