1MKPASSWD(1) Debian GNU/Linux MKPASSWD(1)
2
3
4
6 mkpasswd - Overfeatured front end to crypt(3)
7
9 mkpasswd PASSWORD SALT
10
12 mkpasswd encrypts the given password with the crypt(3) libc function
13 using the given salt.
14
16 -S, --salt=STRING
17 Use the STRING as salt. It must not contain prefixes such as
18 $1$.
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
24 behavior 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 available methods are printed. If TYPE begins and end
29 with $ characters then the string is passed to crypt_gensalt(3)
30 as-is.
31
32 -5 Like --method=md5.
33
34 -P, --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 message than the hashed password is printed on stdout.
38
39 -s, --stdin
40 Like --password-fd=0.
41
43 MKPASSWD_OPTIONS
44 A list of options which will be evalued before the ones speci‐
45 fied on the command line.
46
48 If the --stdin option is used, passwords containing some control char‐
49 acters may not be read correctly.
50
51 This programs suffers of a bad case of featuritis.
52
54 passwd(1), passwd(5), crypt(3), crypt(5), crypt_gensalt(3), getpass(3)
55
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 higher.
60
61
62
63
64Marco d'Itri 21 March 2008 MKPASSWD(1)