OS Manuals

/usr/bin/mkpasswd

Intelligent WHOIS client

From whois 5.6.6-r3 (os), captured 2026-11-05 by running mkpasswd --help (exit 0). permalink

Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]
Crypts the PASSWORD using crypt(3).

      -m, --method=TYPE     select method TYPE
      -5                    like --method=md5crypt
      -S, --salt=SALT       use the specified SALT
      -R, --rounds=NUMBER   use the specified NUMBER of rounds
      -P, --password-fd=NUM read the password from file descriptor NUM
                            instead of /dev/tty
      -s, --stdin           like --password-fd=0
      -h, --help            display this help and exit
      -V, --version         output version information and exit

If PASSWORD is missing then it is asked interactively.
If no SALT is specified, a random one is generated.
If TYPE is 'help', available methods are printed.

Report bugs to <md+whois@linux.it>.
Options (8)
OptionDescriptionSource
-m, --method TYPECompute the password using the TYPE method.help + man
-5Like --method=md5crypt.help + man
-S, --salt SALTUse the STRING as salt.help + man
-R, --rounds NUMBERuse the specified NUMBER of roundshelp + man
-s, --stdinLike --password-fd=0.help + man
-h, --helpdisplay this help and exithelp
-V, --versionoutput version information and exithelp
-P, --password-fd NUMRead the password from file descriptor NUM instead of using getpass(3). (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.