开发者社区> 镜像站> NPM> pseudorandombytes
pseudorandombytes
pseudoRandomBytes ===
Last updated 5 years ago by cwmma .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pseudorandombytes 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

2 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (3)
Dev Dependencies (1)
Dependents (1)