Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
get cryptographically strong PRNGs over https
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
main.js

README.md

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 https://random.smalldata.org.

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.

Something went wrong with that request. Please try again.