5 openssl-passwd - compute password hashes
24 [B<-writerand> I<file>]
27 =for openssl ifdef crypt
31 This command computes the hash of a password typed at
32 run-time or the hash of each password in a list. The password list is
33 taken from the named file for option B<-in>, from stdin for
34 option B<-stdin>, or from the command line, or from the terminal otherwise.
35 The Unix standard algorithm B<-crypt> and the MD5-based BSD password
36 algorithm B<-1>, its Apache variant B<-apr1>, and its AIX variant are
45 Print out a usage message.
49 Use the B<crypt> algorithm (default).
53 Use the MD5 based BSD password algorithm B<1>.
57 Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
61 Use the B<AIX MD5> algorithm (AIX variant of the BSD algorithm).
67 Use the B<SHA256> / B<SHA512> based algorithms defined by Ulrich Drepper.
68 See L<https://www.akkadia.org/drepper/SHA-crypt.txt>.
70 =item B<-salt> I<string>
72 Use the specified salt.
73 When reading a password from the terminal, this implies B<-noverify>.
77 Read passwords from I<file>.
81 Read passwords from B<stdin>.
85 Don't verify when reading a password from the terminal.
89 Don't output warnings when passwords given at the command line are truncated.
93 In the output list, prepend the cleartext password and a TAB character
94 to each password hash.
96 =item B<-rand> I<files>, B<-writerand> I<file>
98 See L<openssl(1)/Random State Options> for more information.
104 % openssl passwd -crypt -salt xx password
107 % openssl passwd -1 -salt xxxxxxxx password
108 $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
110 % openssl passwd -apr1 -salt xxxxxxxx password
111 $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
113 % openssl passwd -aixmd5 -salt xxxxxxxx password
114 xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
118 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
120 Licensed under the Apache License 2.0 (the "License"). You may not use
121 this file except in compliance with the License. You can obtain a copy
122 in the file LICENSE in the source distribution or at
123 L<https://www.openssl.org/source/license.html>.