Command-line tool
pwgen
brew/pwgen
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Password generator
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install pwgen
Linux
brew install pwgen
Generate 160 random passwords with character length of 8
pwgen
Generate passwords with character length of 20
pwgen 20
Generate 10 passwords with character length of 20
pwgen 20 10
Related command-line tools
- pwtech
Professional password generator and manager, formerly known as PWGen - sf-pwgen
Generate passwords using SecurityFoundation framework - password-generator
Memorable password generator for Node and browsers (async WebCrypto). password generator pass random browser crypto… - aegis-password-generator
A secure password generation and management library - xpg
xkcd-style password generator - keyforge
keyforge (Windows package; no description in the winget index) security cli tui api-key password vault secrets… - wifi-password
Show the current WiFi network password - john
Featureful UNIX password cracker
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents