makepasswd(1)

πŸ“¦
version 1.10 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ makepasswd β€” the Unix Reference Manual glow-up ✨

okay bestie, so this one lives in section 1 of the manual (that's the "user commands" section, iykyk) and it's literally called makepasswd. let's get into it πŸ’–


🌸 NAME 🌸

makepasswd β€” generate and/or encrypt passwords


πŸŽ€ SYNOPSIS πŸŽ€

makepasswd [ --chars N ] [ --clearfrom file ] [ --count N ] [ --crypt |
--nocrypt | --crypt-md5 ] [ --cryptsalt N ] [ --help ] [ --maxchars N ]
[ --minchars N ] [ --randomseed N ] [ --rerandom N ] [ --repeatpass N ]
[ --string string ] [ --verbose | --noverbose ]

πŸ’… DESCRIPTION πŸ’…

so makepasswd generates true random passwords using /dev/urandom, and the whole vibe is security over pronounceability β€” like it is NOT trying to make something you can say out loud, it's trying to make something nobody can guess. periodt. πŸ”₯

it can also encrypt plaintext passwords that you hand it on the command line. versatile queen πŸ‘‘


✨ OPTIONS ✨

  • --chars N β€” generate passwords with exactly N characters. ⚠️ do not use this with --minchars and --maxchars, they will fight.
  • --clearfrom FILE β€” take the password from FILE instead of generating one. this one requires the --crypt or --crypt-md5 options, and it may not be used with these: --chars, --maxchars, --minchars, --count, --string, --nocrypt. trailing newlines get yeeted but other white space does not. πŸ™ˆ
  • --count N β€” produce a total of N passwords (the default is one, bestie, just the one).
  • --crypt β€” produce encrypted passwords. πŸ”’
  • --crypt-md5 β€” produce encrypted passwords using the MD5 digest (hash) algorithm.
  • --cryptsalt N β€” use crypt() salt N, a positive number <= 4096. if you want random seeds instead, specify a zero value (that's the default).
  • --help β€” ignore other operands and produce only a help display. the classic. πŸ’
  • --maxchars N β€” generate passwords with at most N characters (default = 10).
  • --minchars N β€” generate passwords with at least N characters (default = 8).
  • --nocrypt β€” do not encrypt the generated password(s) (the default).
  • --noverbose β€” display no labels on output (the default).
  • --randomseed N β€” use random number seed N, between 0 and 2^32 inclusive. a zero value gives you a real-random seed.
🚨 bestie listen to me: this generates much less secure passwords than the default. not only does it generate predictable passwords because of the fixed seed, but the range of available seeds is 32 bits instead of the default 256 bits, and it cannot be changed without breaking expectations of previous users of this option. if possible, do not use this option. fr fr. 😭
  • --rerandom N β€” set the random seed value every N values used. specify zero to use a single seed value (the default). specify one to get true-random passwords β€” though note that doing this too frequently will deplete the supply of entropy available in the kernel's entropy pool. 🌊
  • --repeatpass N β€” use each password N times (4096 maximum, --crypt must be set and --cryptsalt may not be set).
  • --string STRING β€” use the characters in STRING to generate random passwords. πŸ“
  • --verbose β€” display labelling information on output. πŸ‘€

πŸ“œ HISTORY πŸ“œ

makepasswd was originally part of the mkircconf program used to centrally administer the Linux Internet Support Cooperative IRC network. it may potentially be of use in any situation where passwords must be secure and need not be memorized by humans. (iconic origin story tbh πŸ‘‘)

Colin Watson modified it to use Bytes::Random::Secure.


Copyright (c) 1997-1998 by lilo <lilo@linpeople.org>. All rights are reserved by the author. This program may be used under the terms of version 2 of the GNU Public License.


πŸ¦‹ SEE ALSO πŸ¦‹

passwd(5)


and that's the whole page, bestie 🫢 this one shipped as part of the Debian Distribution, dated 1998 February 9 β€” yeah she's an old soul but she still slays. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from