6 passwd - compute password hashes
30 The B<passwd> 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 file>, from stdin for
33 option B<-stdin>, or from the command line, or from the terminal otherwise.
34 The Unix standard algorithm B<crypt> and the MD5-based BSD password
35 algorithm B<1>, its Apache variant B<apr1>, and its AIX variant are available.
43 Print out a usage message.
47 Use the B<crypt> algorithm (default).
51 Use the MD5 based BSD password algorithm B<1>.
55 Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
59 Use the B<AIX MD5> algorithm (AIX variant of the BSD algorithm).
65 Use the B<SHA256> / B<SHA512> based algorithms defined by Ulrich Drepper.
66 See L<https://www.akkadia.org/drepper/SHA-crypt.txt>.
68 =item B<-salt> I<string>
70 Use the specified salt.
71 When reading a password from the terminal, this implies B<-noverify>.
75 Read passwords from I<file>.
79 Read passwords from B<stdin>.
83 Don't verify when reading a password from the terminal.
87 Don't output warnings when passwords given at the command line are truncated.
91 In the output list, prepend the cleartext password and a TAB character
92 to each password hash.
94 =item B<-rand file...>
96 A file or files containing random data used to seed the random number
98 Multiple files can be specified separated by an OS-dependent character.
99 The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
102 =item [B<-writerand file>]
104 Writes random data to the specified I<file> upon exit.
105 This can be used with a subsequent B<-rand> flag.
111 B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
113 B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.>.
115 B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
117 B<openssl passwd -aixmd5 -salt xxxxxxxx password> prints B<xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/>.
121 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
123 Licensed under the OpenSSL license (the "License"). You may not use
124 this file except in compliance with the License. You can obtain a copy
125 in the file LICENSE in the source distribution or at
126 L<https://www.openssl.org/source/license.html>.