passwordgen.js
Generates passwords in the command line. Why passwordgen.js?
- Makes phrase passwords as well as character passwords. See xkcd #936.
- Word passwords are easier to type on mobile.
Install
npm install -g passwordgen
Usage
$ genztht3JflLBzmbEu$ gen --words 4correct horse battery staple$ gen --chars 10 --symbolsO_Rf-4qBOHmm$ gen | xsel -ib # linux$ gen | pbcopy # osx# copies the password to clipboard
--help
Usage: gen [options]
Options:
-h, --help output usage information
-w, --words <n> generate <n> words
-c, --chars <n> generate <n> characters
-s, --symbols include symbols
-S, --seed <seed> use a seed value
Examples:
$ gen #=> EH8peEWVyYskuPh
$ gen -c 5 #=> WsPnA
$ gen -w 4 #=> correct horse battery staple
Programmatic usage
See index.js for all details.
var Passwordgen = ;gen = ;gen; //=> "television pen card small"gen; //=> "uAC4bGA0tXG"gen; //=> "kitten"gen; //=> ['hello', 'honey', 'mittens', 'score']
Also available:
gen;gen;gen;gen;gen;gen;gen;gen;gen;
License
© 2013, Rico Sta. Cruz. Released under the MIT License.