1PASSWD(1) OpenSSL PASSWD(1)
2
3
4
6 passwd - compute password hashes
7
9 openssl passwd [-crypt] [-1] [-apr1] [-salt string] [-in file] [-stdin]
10 [-noverify] [-quiet] [-table] {password}
11
13 The passwd command computes the hash of a password typed at run-time or
14 the hash of each password in a list. The password list is taken from
15 the named file for option -in file, from stdin for option -stdin, or
16 from the command line, or from the terminal otherwise. The Unix stan‐
17 dard algorithm crypt and the MD5-based BSD password algorithm 1 and its
18 Apache variant apr1 are available.
19
21 -crypt
22 Use the crypt algorithm (default).
23
24 -1 Use the MD5 based BSD password algorithm 1.
25
26 -apr1
27 Use the apr1 algorithm (Apache variant of the BSD algorithm).
28
29 -salt string
30 Use the specified salt. When reading a password from the terminal,
31 this implies -noverify.
32
33 -in file
34 Read passwords from file.
35
36 -stdin
37 Read passwords from stdin.
38
39 -noverify
40 Don't verify when reading a password from the terminal.
41
42 -quiet
43 Don't output warnings when passwords given at the command line are
44 truncated.
45
46 -table
47 In the output list, prepend the cleartext password and a TAB char‐
48 acter to each password hash.
49
51 openssl passwd -crypt -salt xx password prints xxj31ZMTZzkVA.
52
53 openssl passwd -1 -salt xxxxxxxx password prints
54 $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a..
55
56 openssl passwd -apr1 -salt xxxxxxxx password prints $apr1$xxxxxxxx$dxH‐
57 fLAsjHkDRmG83UXe8K0.
58
59
60
610.9.8b 2002-10-04 PASSWD(1)