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

ENVIRONMENT

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

BUGS

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

SEE ALSO

52       passwd(1), passwd(5), crypt(3), crypt(5), crypt_gensalt(3), getpass(3).
53

AUTHOR

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