PWGEN(1)

๐Ÿ’– PWGEN(1) ๐Ÿ’–

okay bestie, welcome to the General Commands Manual section for pwgen, and no you did not misread that, we're doing a whole manpage together and it's gonna be iconic โœจ


๐ŸŽ€ NAME ๐ŸŽ€

pwgen โ€” generate pronounceable passwords ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

pwgen [ OPTION ] [ pw_length ] [ num_pw ]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

so like, pwgen makes passwords that are designed to be easily memorized by humans while also being as secure as possible. that's the whole vibe. ๐Ÿ’…

but real talk, no cap: human-memorable passwords are never going to be as secure as completely completely random passwords. that's just facts. in particular, passwords generated by pwgen without the -s option should not be used in places where the password could be attacked via an off-line brute-force attack ๐Ÿ˜ญ. on the other hand, completely randomly generated passwords have a tendency to be written down, and are subject to being compromised in that fashion. so it's giving tradeoffs, periodt.

the way pwgen was designed, it works both interactively and in shell scripts ๐Ÿซถ. so its default behavior differs depending on whether standard output is a tty device or a pipe to another program:

  • used interactively, pwgen will display a screenful of passwords, letting you pick a single password and then quickly erase the screen. this prevents someone from being able to "shoulder surf" the user's chosen password ๐Ÿ‘€โœจ iconic behavior honestly.
  • when standard output (stdout) is not a tty, pwgen will only generate one password, because that tends to be much more convenient for shell scripts, and in order to be compatible with previous versions of this program. legacy support, we love her ๐Ÿ’œ

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -0, --no-numerals โ€” don't include numbers in the generated passwords. numbers? not invited ๐Ÿšซ
  • -1 โ€” print the generated passwords one per line.
  • -A, --no-capitalize โ€” don't bother to include any capital letters in the generated passwords. lowercase only era.
  • -a, --alt-phonics โ€” this option doesn't do anything special; it is present only for backwards compatibility. it's literally just vibing there ๐Ÿงš
  • -B, --ambiguous โ€” don't use characters that could be confused by the user when printed, such as 'l' and '1', or '0' or 'O'. this reduces the number of possible passwords significantly, and as such reduces the quality of the passwords. it may be useful for users who have bad vision, but in general use of this option is not recommended. lowkey a nerf, bestie.
  • -c, --capitalize โ€” include at least one capital letter in the password. this is the default if the standard output is a tty device.
  • -C โ€” print the generated passwords in columns. this is the default if the standard output is a tty device.
  • -N, --num-passwords=num โ€” generate num passwords. this defaults to a screenful if passwords are printed by columns, and one password otherwise.
  • -n, --numerals โ€” include at least one number in the password. this is the default if the standard output is a tty device.
  • -H, --sha1=/path/to/file[#seed] โ€” will use the sha1's hash of given file and the optional seed to create password. it will allow you to compute the same password later, if you remember the file, seed, and pwgen's options used. ie: pwgen -H ~/your_favorite.mp3#your@email.com gives a list of possibles passwords for your pop3 account, and you can ask this list again and again ๐Ÿ”โœจ
WARNING: the passwords generated using this option are not very random. if you use this option, make sure the attacker can not obtain a copy of the file. also, note that the name of the file may be easily available from the ~/.history or ~/.bash_history file. ๐Ÿ’€ stay safe out there fr.
  • -h, --help โ€” print a help message.
  • -r chars, --remove-chars=chars โ€” don't use the specified characters in password. this option will disable the phomeme-based generator and uses the random password generator.
  • -s, --secure โ€” generate completely random, hard-to-memorize passwords. these should only be used for machine passwords, since otherwise it's almost guaranteed that users will simply write the password on a piece of paper taped to the monitor... ๐Ÿ˜ญ๐Ÿ˜ญ pls don't do that.
  • -v, --no-vowels โ€” generate random passwords that do not contain vowels or numbers that might be mistaken for vowels. it provides less secure passwords to allow system administrators to not have to worry with random passwords accidentally contain offensive substrings ๐Ÿ™ˆ the more you know.
  • -y, --symbols โ€” include at least one special character in the password.

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

this version of pwgen was written by Theodore Ts'o <tytso@alum.mit.edu> ๐Ÿ’– it is modelled after a program originally written by Brandon S. Allbery, and then later extensively modified by Olaf Titz, Jim Lynch, and others. it was rewritten from scratch by Theodore Ts'o because the original program was somewhat of a hack, and thus hard to maintain, and because the licensing status of the program was unclear. glow-up of the century honestly ๐ŸŒˆ


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


and that's the whole page bestie!! this was pwgen version 2.08, dated August 2017, and you can find it in the General Commands Manual section ๐ŸŽ€ tysm for reading, mwah, go make some passwords (the secure kind, preferably with -s if it's for a machine, iykyk) ๐Ÿ’–โœจ๐Ÿฆ‹