pseudorandombytes

2.0.0 • Public • Published

pseudoRandomBytes

crypto.pseudoRandomBytes but for use with browserify. In node it just returns crypto.pseudoRandomBytes but in the browser it uses crypto-browserify/randombytes if available else it seeds a prng based on chacha20poly1305.

To use:

var pseudoRandomBytes = require('pseudorandomBbytes');
 
var bytes = pseudoRandomBytes(34);

To be clear there is no legitimate reason for you ever to want to use this.

The algorithms used in this module are NOT suitable for cryptographical usage.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    16
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    16
  • 1.0.0
    0

Package Sidebar

Install

npm i pseudorandombytes

Weekly Downloads

16

Version

2.0.0

License

MIT

Last publish

Collaborators

  • dcousens
  • ljharb
  • cwmma