Blame doc/man1/passwd.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
openssl-passwd,
Packit c4476c
passwd - compute password hashes
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
B<openssl passwd>
Packit c4476c
[B<-help>]
Packit c4476c
[B<-crypt>]
Packit c4476c
[B<-1>]
Packit c4476c
[B<-apr1>]
Packit c4476c
[B<-aixmd5>]
Packit c4476c
[B<-5>]
Packit c4476c
[B<-6>]
Packit c4476c
[B<-salt> I<string>]
Packit c4476c
[B<-in> I<file>]
Packit c4476c
[B<-stdin>]
Packit c4476c
[B<-noverify>]
Packit c4476c
[B<-quiet>]
Packit c4476c
[B<-table>]
Packit c4476c
[B<-rand file...>]
Packit c4476c
[B<-writerand file>]
Packit c4476c
{I<password>}
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
The B<passwd> command computes the hash of a password typed at
Packit c4476c
run-time or the hash of each password in a list.  The password list is
Packit c4476c
taken from the named file for option B<-in file>, from stdin for
Packit c4476c
option B<-stdin>, or from the command line, or from the terminal otherwise.
Packit c4476c
The Unix standard algorithm B<crypt> and the MD5-based BSD password
Packit c4476c
algorithm B<1>, its Apache variant B<apr1>, and its AIX variant are available.
Packit c4476c
Packit c4476c
=head1 OPTIONS
Packit c4476c
Packit c4476c
=over 4
Packit c4476c
Packit c4476c
=item B<-help>
Packit c4476c
Packit c4476c
Print out a usage message.
Packit c4476c
Packit c4476c
=item B<-crypt>
Packit c4476c
Packit c4476c
Use the B<crypt> algorithm (default).
Packit c4476c
Packit c4476c
=item B<-1>
Packit c4476c
Packit c4476c
Use the MD5 based BSD password algorithm B<1>.
Packit c4476c
Packit c4476c
=item B<-apr1>
Packit c4476c
Packit c4476c
Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
Packit c4476c
Packit c4476c
=item B<-aixmd5>
Packit c4476c
Packit c4476c
Use the B<AIX MD5> algorithm (AIX variant of the BSD algorithm).
Packit c4476c
Packit c4476c
=item B<-5>
Packit c4476c
Packit c4476c
=item B<-6>
Packit c4476c
Packit c4476c
Use the B<SHA256> / B<SHA512> based algorithms defined by Ulrich Drepper.
Packit c4476c
See L<https://www.akkadia.org/drepper/SHA-crypt.txt>.
Packit c4476c
Packit c4476c
=item B<-salt> I<string>
Packit c4476c
Packit c4476c
Use the specified salt.
Packit c4476c
When reading a password from the terminal, this implies B<-noverify>.
Packit c4476c
Packit c4476c
=item B<-in> I<file>
Packit c4476c
Packit c4476c
Read passwords from I<file>.
Packit c4476c
Packit c4476c
=item B<-stdin>
Packit c4476c
Packit c4476c
Read passwords from B<stdin>.
Packit c4476c
Packit c4476c
=item B<-noverify>
Packit c4476c
Packit c4476c
Don't verify when reading a password from the terminal.
Packit c4476c
Packit c4476c
=item B<-quiet>
Packit c4476c
Packit c4476c
Don't output warnings when passwords given at the command line are truncated.
Packit c4476c
Packit c4476c
=item B<-table>
Packit c4476c
Packit c4476c
In the output list, prepend the cleartext password and a TAB character
Packit c4476c
to each password hash.
Packit c4476c
Packit c4476c
=item B<-rand file...>
Packit c4476c
Packit c4476c
A file or files containing random data used to seed the random number
Packit c4476c
generator.
Packit c4476c
Multiple files can be specified separated by an OS-dependent character.
Packit c4476c
The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
Packit c4476c
all others.
Packit c4476c
Packit c4476c
=item [B<-writerand file>]
Packit c4476c
Packit c4476c
Writes random data to the specified I<file> upon exit.
Packit c4476c
This can be used with a subsequent B<-rand> flag.
Packit c4476c
Packit c4476c
=back
Packit c4476c
Packit c4476c
=head1 EXAMPLES
Packit c4476c
Packit c4476c
  % openssl passwd -crypt -salt xx password
Packit c4476c
  xxj31ZMTZzkVA
Packit c4476c
Packit c4476c
  % openssl passwd -1 -salt xxxxxxxx password
Packit c4476c
  $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
Packit c4476c
Packit c4476c
  % openssl passwd -apr1 -salt xxxxxxxx password
Packit c4476c
  $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
Packit c4476c
Packit c4476c
  % openssl passwd -aixmd5 -salt xxxxxxxx password
Packit c4476c
  xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut