1PASSWD(1) OpenSSL PASSWD(1)
2
3
4
6 openssl-passwd, passwd - compute password hashes
7
9 openssl passwd [-help] [-crypt] [-1] [-apr1] [-aixmd5] [-5] [-6] [-salt
10 string] [-in file] [-stdin] [-noverify] [-quiet] [-table] [-rand
11 file...] [-writerand file] {password}
12
14 The passwd command computes the hash of a password typed at run-time or
15 the hash of each password in a list. The password list is taken from
16 the named file for option -in file, from stdin for option -stdin, or
17 from the command line, or from the terminal otherwise. The Unix
18 standard algorithm crypt and the MD5-based BSD password algorithm 1,
19 its Apache variant apr1, and its AIX variant are available.
20
22 -help
23 Print out a usage message.
24
25 -crypt
26 Use the crypt algorithm (default).
27
28 -1 Use the MD5 based BSD password algorithm 1.
29
30 -apr1
31 Use the apr1 algorithm (Apache variant of the BSD algorithm).
32
33 -aixmd5
34 Use the AIX MD5 algorithm (AIX variant of the BSD algorithm).
35
36 -5
37 -6 Use the SHA256 / SHA512 based algorithms defined by Ulrich Drepper.
38 See <https://www.akkadia.org/drepper/SHA-crypt.txt>.
39
40 -salt string
41 Use the specified salt. When reading a password from the terminal,
42 this implies -noverify.
43
44 -in file
45 Read passwords from file.
46
47 -stdin
48 Read passwords from stdin.
49
50 -noverify
51 Don't verify when reading a password from the terminal.
52
53 -quiet
54 Don't output warnings when passwords given at the command line are
55 truncated.
56
57 -table
58 In the output list, prepend the cleartext password and a TAB
59 character to each password hash.
60
61 -rand file...
62 A file or files containing random data used to seed the random
63 number generator. Multiple files can be specified separated by an
64 OS-dependent character. The separator is ; for MS-Windows, , for
65 OpenVMS, and : for all others.
66
67 [-writerand file]
68 Writes random data to the specified file upon exit. This can be
69 used with a subsequent -rand flag.
70
72 % openssl passwd -crypt -salt xx password
73 xxj31ZMTZzkVA
74
75 % openssl passwd -1 -salt xxxxxxxx password
76 $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
77
78 % openssl passwd -apr1 -salt xxxxxxxx password
79 $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
80
81 % openssl passwd -aixmd5 -salt xxxxxxxx password
82 xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
83
85 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
86
87 Licensed under the OpenSSL license (the "License"). You may not use
88 this file except in compliance with the License. You can obtain a copy
89 in the file LICENSE in the source distribution or at
90 <https://www.openssl.org/source/license.html>.
91
92
93
941.1.1c 2019-05-28 PASSWD(1)