https://github.com/lgraubner/strong-pwgen-cli
đŸ”’Generate cryptographically strong passwords.
https://github.com/lgraubner/strong-pwgen-cli
cli crypto cryptography password password-generator
Last synced: 8 months ago
JSON representation
đŸ”’Generate cryptographically strong passwords.
- Host: GitHub
- URL: https://github.com/lgraubner/strong-pwgen-cli
- Owner: lgraubner
- License: mit
- Created: 2018-03-15T21:55:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T06:41:27.000Z (almost 8 years ago)
- Last Synced: 2025-03-27T16:53:21.071Z (about 1 year ago)
- Topics: cli, crypto, cryptography, password, password-generator
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Strong password generator CLI
[](https://david-dm.org/lgraubner/strong-pwgen-cli) [](https://www.npmjs.com/package/strong-pwgen-cli)
> 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](https://github.com/ai/nanoid#readme).
## Table of contents
- [Install](#install)
- [Usage](#usage)
- [Options](#options)
- [License](#license)
## Install
This module is available on [npm](https://www.npmjs.com/).
```BASH
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.
```BASH
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.
```BASH
pwgen --length 20
# or
pwgen -l 20
```