secure-randword
v0.1.4
Published
Generate random words using a CSPRNG
Downloads
3
Readme
secure-randword
Generate random words using a CSPRNG - crypto.getRandom() on nodejs or window.crypto.getRandomValues() on browsers, via secure-random.
Uses a word list of 2048 words from Bitcoin's BIP 39.
Install
$ npm install secure-randword
Use
var randword = require('secure-randword');
console.log(randword()); // one random word
console.log(randword(5)); // 5 random words
License
MIT