makepasswd(1)
β¨ 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--mincharsand--maxchars, they will fight.--clearfrom FILEβ take the password from FILE instead of generating one. this one requires the--cryptor--crypt-md5options, 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β usecrypt()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, between0and2^32inclusive. 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 (4096maximum,--cryptmust be set and--cryptsaltmay 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 Β©οΈ
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 π¦
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
- debian bookworm: makepasswd 1.10-14 Β· GPL-2.0-only
- debian trixie: makepasswd 1.10-14 Β· GPL-2.0-only
- ubuntu jammy: makepasswd 1.10-13 Β· GPL-2.0-only
- ubuntu noble: makepasswd 1.10-14 Β· GPL-2.0-only
- ubuntu questing: makepasswd 1.10-15
- ubuntu resolute: makepasswd 1.10-16 Β· GPL-2.0-only
- ubuntu stonking: makepasswd 1.10-16 Β· GPL-2.0-only
- Copyright (C) 1997-1998 Johnie Ingram (johnie@debian.org)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms