passwd.pod revision 59191
1=pod 2 3=head1 NAME 4 5passwd - compute password hashes 6 7=head1 SYNOPSIS 8 9B<openssl passwd> 10[B<-crypt>] 11[B<-apr1>] 12[B<-salt> I<string>] 13[B<-in> I<file>] 14[B<-stdin>] 15[B<-quiet>] 16[B<-table>] 17{I<password>} 18 19=head1 DESCRIPTION 20 21The B<passwd> command computes the hash of a password typed at 22run-time or the hash of each password in a list. The password list is 23taken from the named file for option B<-in file>, from stdin for 24option B<-stdin>, and from the command line otherwise. 25The Unix standard algorithm B<crypt> and the MD5-based B<apr1> algorithm 26are available. 27 28=head1 OPTIONS 29 30=over 4 31 32=item B<-crypt> 33 34Use the B<crypt> algorithm (default). 35 36=item B<-apr1> 37 38Use the B<apr1> algorithm. 39 40=item B<-salt> I<string> 41 42Use the specified salt. 43 44=item B<-in> I<file> 45 46Read passwords from I<file>. 47 48=item B<-stdin> 49 50Read passwords from B<stdin>. 51 52=item B<-quiet> 53 54Don't output warnings when passwords given at the command line are truncated. 55 56=item B<-table> 57 58In the output list, prepend the cleartext password and a TAB character 59to each password hash. 60 61=back 62 63=head1 EXAMPLES 64 65B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. 66 67B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. 68 69=cut 70