projecte_ionic/node_modules/randombytes
janmaroto b12369cb47 Conexio amb la api 2022-02-09 18:30:03 +01:00
..
.travis.yml Conexio amb la api 2022-02-09 18:30:03 +01:00
.zuul.yml Conexio amb la api 2022-02-09 18:30:03 +01:00
LICENSE Conexio amb la api 2022-02-09 18:30:03 +01:00
README.md Conexio amb la api 2022-02-09 18:30:03 +01:00
browser.js Conexio amb la api 2022-02-09 18:30:03 +01:00
index.js Conexio amb la api 2022-02-09 18:30:03 +01:00
package.json Conexio amb la api 2022-02-09 18:30:03 +01:00
test.js Conexio amb la api 2022-02-09 18:30:03 +01:00

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