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