@azzarox/passgen
v0.1.2
Published
Interactive CLI generator of passphrases, password or PIN.
Readme
Generator
Interactive CLI generator of passphrases, password or PIN.
Install
Install the CLI globally via npm:
npm install -g @azzarox/passgenThis will make passgen command available anywhere in your terminal.
Quick Start (Local/Development)
Clone the repository and use npm link to test locally:
git clone <repo>
cd passgen
npm install
npm run build
npm linkThis will create a symlink so you can run passgen from your local build without publishing to npm.
Usage
$ passgen
$ passgen --help| Key | Action | | ---------- | ----------------- | | r | Regenerate | | c | Copy to clipboard | | m | Change mode | | q / Ctrl+C | Exit |
Passphrase mode
| Key | Action |
| ------------- | ----------------------------------- |
| ↑ / ↓ | Change word count (3–9) |
| s | Cycle separator (- . _ ! ? space) |
| Shift + C | Toggle capitalization |
| Shift + N | Toggle numbers |
Password mode
| Key | Action | | ------------- | ------------------------------ | | ↑ / ↓ | Change password length (12-32) | | Shift + S | Toggle symbols | | Shift + N | Toggle numbers |
PIN mode
| Key | Action | | ----- | ------------------------ | | ↑ / ↓ | Change PIN length (6-10) |
Wordlist
Uses the EFF large wordlist for generating secure, memorable passphrases.
curl https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt -o source/data/wordlist.txtDevelopment
npm run dev # Watch mode
npm run build # Build
npm link # Link globally after build