crypto-browserify/randombytes

random bytes from browserify stand alone

102

stars

38

commits

JavaScript

primary language

Dec 21, 2024

updated

README

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
});

Contributors

calvinmetcalf

20 commits

dcousens

7 commits

jimmywarting

7 commits

bneijt

1 commits

crypto-browserify/randombytes

random bytes from browserify stand alone

102

stars

38

commits

JavaScript

primary language

Dec 21, 2024

updated

README

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
});

Contributors

calvinmetcalf

20 commits

dcousens

7 commits

jimmywarting

7 commits

bneijt

1 commits

Languages

JavaScript

100.0%