Socket
Book a DemoInstallSign in
Socket

pseudorandombytes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pseudorandombytes

pseudoRandomBytes ===

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 07 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts