weekend project to make a simple web app using Typescript/Ionic/Angular.
Vincent Sima 1517fc9a2f done 6 years ago
..
.travis.yml done 6 years ago
.zuul.yml done 6 years ago
LICENSE done 6 years ago
README.md done 6 years ago
browser.js done 6 years ago
index.js done 6 years ago
package.json done 6 years ago
test.js done 6 years ago

README.md

randombytes

Version Build Status

randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues

var randomBytes = require('randombytes');
randomBytes(16);//get 16 random bytes
randomBytes(16, function (err, resp) {
  // resp is 16 random bytes
});