xref: /minix3/crypto/external/bsd/openssl/dist/doc/apps/passwd.pod (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc=pod
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel Sambuc=head1 NAME
4*ebfedea0SLionel Sambuc
5*ebfedea0SLionel Sambucpasswd - compute password hashes
6*ebfedea0SLionel Sambuc
7*ebfedea0SLionel Sambuc=head1 SYNOPSIS
8*ebfedea0SLionel Sambuc
9*ebfedea0SLionel SambucB<openssl passwd>
10*ebfedea0SLionel Sambuc[B<-crypt>]
11*ebfedea0SLionel Sambuc[B<-1>]
12*ebfedea0SLionel Sambuc[B<-apr1>]
13*ebfedea0SLionel Sambuc[B<-salt> I<string>]
14*ebfedea0SLionel Sambuc[B<-in> I<file>]
15*ebfedea0SLionel Sambuc[B<-stdin>]
16*ebfedea0SLionel Sambuc[B<-noverify>]
17*ebfedea0SLionel Sambuc[B<-quiet>]
18*ebfedea0SLionel Sambuc[B<-table>]
19*ebfedea0SLionel Sambuc{I<password>}
20*ebfedea0SLionel Sambuc
21*ebfedea0SLionel Sambuc=head1 DESCRIPTION
22*ebfedea0SLionel Sambuc
23*ebfedea0SLionel SambucThe B<passwd> command computes the hash of a password typed at
24*ebfedea0SLionel Sambucrun-time or the hash of each password in a list.  The password list is
25*ebfedea0SLionel Sambuctaken from the named file for option B<-in file>, from stdin for
26*ebfedea0SLionel Sambucoption B<-stdin>, or from the command line, or from the terminal otherwise.
27*ebfedea0SLionel SambucThe Unix standard algorithm B<crypt> and the MD5-based BSD password
28*ebfedea0SLionel Sambucalgorithm B<1> and its Apache variant B<apr1> are available.
29*ebfedea0SLionel Sambuc
30*ebfedea0SLionel Sambuc=head1 OPTIONS
31*ebfedea0SLionel Sambuc
32*ebfedea0SLionel Sambuc=over 4
33*ebfedea0SLionel Sambuc
34*ebfedea0SLionel Sambuc=item B<-crypt>
35*ebfedea0SLionel Sambuc
36*ebfedea0SLionel SambucUse the B<crypt> algorithm (default).
37*ebfedea0SLionel Sambuc
38*ebfedea0SLionel Sambuc=item B<-1>
39*ebfedea0SLionel Sambuc
40*ebfedea0SLionel SambucUse the MD5 based BSD password algorithm B<1>.
41*ebfedea0SLionel Sambuc
42*ebfedea0SLionel Sambuc=item B<-apr1>
43*ebfedea0SLionel Sambuc
44*ebfedea0SLionel SambucUse the B<apr1> algorithm (Apache variant of the BSD algorithm).
45*ebfedea0SLionel Sambuc
46*ebfedea0SLionel Sambuc=item B<-salt> I<string>
47*ebfedea0SLionel Sambuc
48*ebfedea0SLionel SambucUse the specified salt.
49*ebfedea0SLionel SambucWhen reading a password from the terminal, this implies B<-noverify>.
50*ebfedea0SLionel Sambuc
51*ebfedea0SLionel Sambuc=item B<-in> I<file>
52*ebfedea0SLionel Sambuc
53*ebfedea0SLionel SambucRead passwords from I<file>.
54*ebfedea0SLionel Sambuc
55*ebfedea0SLionel Sambuc=item B<-stdin>
56*ebfedea0SLionel Sambuc
57*ebfedea0SLionel SambucRead passwords from B<stdin>.
58*ebfedea0SLionel Sambuc
59*ebfedea0SLionel Sambuc=item B<-noverify>
60*ebfedea0SLionel Sambuc
61*ebfedea0SLionel SambucDon't verify when reading a password from the terminal.
62*ebfedea0SLionel Sambuc
63*ebfedea0SLionel Sambuc=item B<-quiet>
64*ebfedea0SLionel Sambuc
65*ebfedea0SLionel SambucDon't output warnings when passwords given at the command line are truncated.
66*ebfedea0SLionel Sambuc
67*ebfedea0SLionel Sambuc=item B<-table>
68*ebfedea0SLionel Sambuc
69*ebfedea0SLionel SambucIn the output list, prepend the cleartext password and a TAB character
70*ebfedea0SLionel Sambucto each password hash.
71*ebfedea0SLionel Sambuc
72*ebfedea0SLionel Sambuc=back
73*ebfedea0SLionel Sambuc
74*ebfedea0SLionel Sambuc=head1 EXAMPLES
75*ebfedea0SLionel Sambuc
76*ebfedea0SLionel SambucB<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
77*ebfedea0SLionel Sambuc
78*ebfedea0SLionel SambucB<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.>.
79*ebfedea0SLionel Sambuc
80*ebfedea0SLionel SambucB<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
81*ebfedea0SLionel Sambuc
82*ebfedea0SLionel Sambuc=cut
83