1MKPASSWD(1)                    Debian GNU/Linux                    MKPASSWD(1)
2
3
4

NAME

6       mkpasswd - Overfeatured front end to crypt(3)
7

SYNOPSIS

9       mkpasswd PASSWORD [SALT]
10

DESCRIPTION

12       mkpasswd  encrypts  the given password with the crypt(3) libc function,
13       using the given salt.
14

OPTIONS

16       -S, --salt=STRING
17              Use the STRING as salt. If it begins with  $  then  it  will  be
18              passed straight to crypt(3) without any checks.
19
20       -R, --rounds=NUMBER
21              Use NUMBER rounds. This argument is ignored if the method chosen
22              does not support  variable  rounds.  For  the  OpenBSD  Blowfish
23              method  this  is the logarithm of the number of rounds.  The be‐
24              havior is undefined if this option is used without --method.
25
26       -m, --method=TYPE
27              Compute the password using the TYPE method.   If  TYPE  is  help
28              then  the  list of available methods is printed.  If TYPE begins
29              and  end  with  $  characters  then  the  string  is  passed  to
30              crypt_gensalt(3) as-is.
31
32       -5     Like --method=md5crypt.
33
34       -P NUM, --password-fd=NUM
35              Read the password from file descriptor NUM instead of using get‐
36              pass(3).  If the file descriptor is not connected to a tty  then
37              no other text than the hashed password is printed on stdout.
38
39       -s, --stdin
40              Like --password-fd=0.
41

ENVIRONMENT

43       MKPASSWD_OPTIONS
44              A list of options which will be evaluated before the ones speci‐
45              fied on the command line.
46

BUGS

48       If the --stdin option is used then passwords  containing  some  control
49       characters may not be read correctly.
50
51       This program suffers of a bad case of featuritis.
52

SEE ALSO

54       passwd(1), passwd(5), crypt(3), crypt(5), crypt_gensalt(3), getpass(3).
55

AUTHOR

57       mkpasswd  and  this man page were written by Marco d'Itri <md@linux.it>
58       and are licensed under the terms of the  GNU  General  Public  License,
59       version 2 or later.
60
61
62
63
64Marco d'Itri                      2019-12-30                       MKPASSWD(1)
Impressum