tasks_manager/frontend/node_modules/randombytes
2025-02-10 07:20:15 +03:00
..
.travis.yml Добавление frontend 2025-02-10 07:20:15 +03:00
.zuul.yml Добавление frontend 2025-02-10 07:20:15 +03:00
browser.js Добавление frontend 2025-02-10 07:20:15 +03:00
index.js Добавление frontend 2025-02-10 07:20:15 +03:00
LICENSE Добавление frontend 2025-02-10 07:20:15 +03:00
package.json Добавление frontend 2025-02-10 07:20:15 +03:00
README.md Добавление frontend 2025-02-10 07:20:15 +03:00
test.js Добавление frontend 2025-02-10 07:20:15 +03:00

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