1.1.3 • Published 3 years ago

pwd-cli v1.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

pwd-cli

This is a cli wrapper for generate-password and bcryptjs to generate and hash password from command line.

Password generated will be like GFZmGFWBVJ.

Install

npm version

npm install -g pwd-cli

Generate a password

password # this will generate a password for you.
GFZmGFWBVJ # output password

Generate a password with options

password --numbers -l 20 # The password contains numbers and length will be 20
options { numbers: true, length: 20 }   # output options
l9y6eds7u8Q8wDKbIVuZ                    # output password

Options available

Please refer options to https://www.npmjs.com/package/generate-password#available-options

const optionDefinitions = [
  {name: 'length', alias: 'l', type: Number},
  {name: 'numbers', alias: 'n', type: Boolean},
  {name: 'symbols', alias: 's', type: Boolean},
  {name: 'lowercase', type: Boolean},
  {name: 'uppercase', type: Boolean},
  {name: 'excludeSimilarCharacters', type: Boolean},
  {name: 'exclude', type: String},
  {name: 'strict', type: Boolean},
  {name: 'hash', type: Boolean},              // show hash result by bcrypt as well.
  {name: 'help', alias: 'h', type: Boolean},  // will show option definitions and not generate password.
]

Hash your password

hash-pwd <YOUR_PASSWORD>
hash-pwd super_secret
$2a$10$jKwDbN2d4aLmC7tiaoqoXeTpExgCd2LBGnVc.oQTZhTG6I7sh4hYm

Install from source

clone this repository and run npm link.

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.0

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago