DOKK / manpages / debian 10 / whois / mkpasswd.1.en
MKPASSWD(1) Debian GNU/Linux MKPASSWD(1)

mkpasswd - Overfeatured front end to crypt(3)

mkpasswd PASSWORD SALT

mkpasswd encrypts the given password with the crypt(3) libc function using the given salt.

Use the STRING as salt. It must not contain prefixes such as $1$.
Use NUMBER rounds. This argument is ignored if the method chosen does not support variable rounds. For the OpenBSD Blowfish method this is the logarithm of the number of rounds. The behavior is undefined if this option is used without --method.
Compute the password using the TYPE method. If TYPE is help then the available methods are printed. If TYPE begins and end with $ characters then the string is passed to crypt_gensalt(3) as-is.
-5
Like --method=md5.
Read the password from file descriptor NUM instead of using getpass(3). If the file descriptor is not connected to a tty then no other message than the hashed password is printed on stdout.
Like --password-fd=0.

A list of options which will be evalued before the ones specified on the command line.

If the --stdin option is used, passwords containing some control characters may not be read correctly.

passwd(1), passwd(5), crypt(3), crypt(5), crypt_gensalt(3), getpass(3)

mkpasswd and this man page were written by Marco d'Itri <md@linux.it> and are licensed under the terms of the GNU General Public License, version 2 or higher.

21 March 2008 Marco d'Itri