get cryptographically strong PRNGs over https
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Node.js cryptographically strong pseudo random number generator SSL server

Since browser JS can't quite make real random numbers, the next best option is to use https:// to go to a trusted server and get a random number straight from OpenSSL. That's what this is!

I run an instance of this at

It supports CORS and JSONP so that you can get to it from client side JS.

For a client side crypto library that hooks up to this, see ezcrypto-js.

WARNING: JavaScript cryptography is still more or less the wild west. See this article for a pretty decent explanation of what you are getting yourself into. Use at your own risk.