2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-passwd - compute password hashes
24 {- $OpenSSL::safe::opt_r_synopsis -}
25 {- $OpenSSL::safe::opt_provider_synopsis -}
30 This command computes the hash of a password typed at
31 run-time or the hash of each password in a list. The password list is
32 taken from the named file for option B<-in>, from stdin for
33 option B<-stdin>, or from the command line, or from the terminal otherwise.
34 The MD5-based BSD password algorithm B<-1>, its Apache variant B<-apr1>,
35 and its AIX variant are available.
43 Print out a usage message.
47 Use the MD5 based BSD password algorithm B<1> (default).
51 Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
55 Use the B<AIX MD5> algorithm (AIX variant of the BSD algorithm).
61 Use the B<SHA256> / B<SHA512> based algorithms defined by Ulrich Drepper.
62 See L<https://www.akkadia.org/drepper/SHA-crypt.txt>.
64 =item B<-salt> I<string>
66 Use the specified salt.
67 When reading a password from the terminal, this implies B<-noverify>.
71 Read passwords from I<file>.
75 Read passwords from B<stdin>.
79 Don't verify when reading a password from the terminal.
83 Don't output warnings when passwords given at the command line are truncated.
87 In the output list, prepend the cleartext password and a TAB character
88 to each password hash.
92 When the B<-table> option is used, reverse the order of cleartext and hash.
94 {- $OpenSSL::safe::opt_r_item -}
96 {- $OpenSSL::safe::opt_provider_item -}
102 % openssl passwd -1 -salt xxxxxxxx password
103 $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
105 % openssl passwd -apr1 -salt xxxxxxxx password
106 $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
108 % openssl passwd -aixmd5 -salt xxxxxxxx password
109 xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
113 The B<-crypt> option was removed in OpenSSL 3.0.
117 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
119 Licensed under the Apache License 2.0 (the "License"). You may not use
120 this file except in compliance with the License. You can obtain a copy
121 in the file LICENSE in the source distribution or at
122 L<https://www.openssl.org/source/license.html>.