159191Skris=pod
259191Skris
359191Skris=head1 NAME
459191Skris
5325337Sjkimopenssl-passwd,
659191Skrispasswd - compute password hashes
759191Skris
859191Skris=head1 SYNOPSIS
959191Skris
1059191SkrisB<openssl passwd>
1159191Skris[B<-crypt>]
1268651Skris[B<-1>]
1359191Skris[B<-apr1>]
1459191Skris[B<-salt> I<string>]
1559191Skris[B<-in> I<file>]
1659191Skris[B<-stdin>]
17109998Smarkm[B<-noverify>]
1859191Skris[B<-quiet>]
1959191Skris[B<-table>]
2059191Skris{I<password>}
2159191Skris
2259191Skris=head1 DESCRIPTION
2359191Skris
2459191SkrisThe B<passwd> command computes the hash of a password typed at
2559191Skrisrun-time or the hash of each password in a list.  The password list is
2659191Skristaken from the named file for option B<-in file>, from stdin for
27109998Smarkmoption B<-stdin>, or from the command line, or from the terminal otherwise.
2868651SkrisThe Unix standard algorithm B<crypt> and the MD5-based BSD password
2968651Skrisalgorithm B<1> and its Apache variant B<apr1> are available.
3059191Skris
3159191Skris=head1 OPTIONS
3259191Skris
3359191Skris=over 4
3459191Skris
3559191Skris=item B<-crypt>
3659191Skris
3759191SkrisUse the B<crypt> algorithm (default).
3859191Skris
3968651Skris=item B<-1>
4068651Skris
4168651SkrisUse the MD5 based BSD password algorithm B<1>.
4268651Skris
4359191Skris=item B<-apr1>
4459191Skris
4568651SkrisUse the B<apr1> algorithm (Apache variant of the BSD algorithm).
4659191Skris
4759191Skris=item B<-salt> I<string>
4859191Skris
4959191SkrisUse the specified salt.
50109998SmarkmWhen reading a password from the terminal, this implies B<-noverify>.
5159191Skris
5259191Skris=item B<-in> I<file>
5359191Skris
5459191SkrisRead passwords from I<file>.
5559191Skris
5659191Skris=item B<-stdin>
5759191Skris
5859191SkrisRead passwords from B<stdin>.
5959191Skris
60109998Smarkm=item B<-noverify>
61109998Smarkm
62109998SmarkmDon't verify when reading a password from the terminal.
63109998Smarkm
6459191Skris=item B<-quiet>
6559191Skris
6659191SkrisDon't output warnings when passwords given at the command line are truncated.
6759191Skris
6859191Skris=item B<-table>
6959191Skris
7059191SkrisIn the output list, prepend the cleartext password and a TAB character
7159191Skristo each password hash.
7259191Skris
7359191Skris=back
7459191Skris
7559191Skris=head1 EXAMPLES
7659191Skris
7759191SkrisB<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
7859191Skris
79109998SmarkmB<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.>.
8068651Skris
8159191SkrisB<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
8259191Skris
8359191Skris=cut
84