Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

get cryptographically strong PRNGs over https

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 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.