Skip to content

About

Retrieve a secure random byte string of a specified length

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

secure-random-bytes

Retrieve a secure random byte string of a specified length.

Example

const randomBytes = require('secure-random-bytes');

randomBytes(10);
// => 'ÊïÜsóÐ\u0006\u0016mÏ'

Installation

$ npm install secure-random-bytes

API

const randomBytes = require('secure-random-bytes');

randomBytes(length)

Returns a String (whose length is length) of random bytes.

About

Retrieve a secure random byte string of a specified length

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages