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