Skip to content

đŸ”’Generate cryptographically strong passwords.

License

Notifications You must be signed in to change notification settings

lgraubner/strong-pwgen-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strong password generator CLI

David npm

Generate cryptographically strong passwords.

This CLI tool generates unique and strong passwords. Under the hood the excellent nanoid package is used which leverages the Node.js crypto module. You can read more about the generation process and security on it's nanoid's Github page.

Table of contents

Install

This module is available on npm.

npm install -g strong-pwgen-cli
# or execute it directly with npx (since npm v5.2)
npx strong-pwgen-cli

Usage

This module provides a strong default consisting of a 32 characters long random string based on lower/uppercase alphabet, numbers and special chars. The result is getting copied directly to the clipboard.

pwgen

Options

At the moment only a single option is available. Most of the time the default behavior should suffice.

length

Adjust the length of the password.

pwgen --length 20
# or
pwgen -l 20