0.1.0 • Published 5 years ago

random-passwd v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

random-passwd

Travis CI Greenkeeper badge NPM Version NPM Downloads MIT

Generate a cryptographically strong random password string

Install random-passwd

This module requires node.js 8 or above.

npm i -g random-passwd

Usage

random-passwd [random-bytes]

random-bytes defaults to 64 if not provided. random-bytes must be a whole number between 6 and 256 inclusive.

Random bytesPassword LengthBitsCombinations
68482.8e+14
811641.8e+19
16221283.4e+38
32432561.2e+77
64865121.3e+154
12817110241.8e+308
25634220483.2e+616

If someone knows that you generated a default password with this utility it would take an average of 6.7e+153 attempts to find your password by brute force (half of 1.3e+154).

Running tests

Tests are provided by xo and ava.

npm install
npm test