pwgen
Generate memorable or random passwords
TLDR
Generate a password
SYNOPSIS
pwgen [options] [length] [count]
DESCRIPTION
pwgen generates random, pronounceable passwords. By default, it creates passwords designed to be easily memorized by humans while still being reasonably secure.
The tool can generate different styles of passwords: pronounceable (default), completely random, with or without special characters, and with various constraints. It outputs multiple passwords allowing users to choose one they find memorable.
pwgen is commonly used for creating initial passwords, generating secrets for scripts, and batch password creation.
PARAMETERS
-s, --secure
Generate completely random passwords.-y, --symbols
Include at least one special character.-n, --numerals
Include at least one number.-c, --capitalize
Include at least one capital letter.-A, --no-capitalize
No capital letters.-0, --no-numerals
No numbers.-B, --ambiguous
Avoid ambiguous characters (0O1lI).-1
Print one password per line.-v, --no-vowels
No vowels (avoid offensive words).-H file, --sha1= file
Use SHA1 hash of file as seed.-r chars
Remove specified characters.
CAVEATS
Default pronounceable passwords are less secure than random ones. Generated passwords should still meet your security requirements. Use -s for high-security applications. Entropy depends on password length and character set.
HISTORY
pwgen was originally written by Theodore Ts'o in 2001. It was designed to create passwords that users could actually remember, reducing the tendency to write them down. The tool has remained popular for both personal and administrative password generation.
