summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/doc/apps/passwd.pod
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/doc/apps/passwd.pod')
-rw-r--r--src/lib/libssl/src/doc/apps/passwd.pod13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/libssl/src/doc/apps/passwd.pod b/src/lib/libssl/src/doc/apps/passwd.pod
index cee6a2f172..6e098940c7 100644
--- a/src/lib/libssl/src/doc/apps/passwd.pod
+++ b/src/lib/libssl/src/doc/apps/passwd.pod
@@ -8,6 +8,7 @@ passwd - compute password hashes
8 8
9B<openssl passwd> 9B<openssl passwd>
10[B<-crypt>] 10[B<-crypt>]
11[B<-1>]
11[B<-apr1>] 12[B<-apr1>]
12[B<-salt> I<string>] 13[B<-salt> I<string>]
13[B<-in> I<file>] 14[B<-in> I<file>]
@@ -22,8 +23,8 @@ The 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 23run-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 24taken from the named file for option B<-in file>, from stdin for
24option B<-stdin>, and from the command line otherwise. 25option B<-stdin>, and from the command line otherwise.
25The Unix standard algorithm B<crypt> and the MD5-based B<apr1> algorithm 26The Unix standard algorithm B<crypt> and the MD5-based BSD password
26are available. 27algorithm B<1> and its Apache variant B<apr1> are available.
27 28
28=head1 OPTIONS 29=head1 OPTIONS
29 30
@@ -33,9 +34,13 @@ are available.
33 34
34Use the B<crypt> algorithm (default). 35Use the B<crypt> algorithm (default).
35 36
37=item B<-1>
38
39Use the MD5 based BSD password algorithm B<1>.
40
36=item B<-apr1> 41=item B<-apr1>
37 42
38Use the B<apr1> algorithm. 43Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
39 44
40=item B<-salt> I<string> 45=item B<-salt> I<string>
41 46
@@ -64,6 +69,8 @@ to each password hash.
64 69
65B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. 70B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
66 71
72B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$8XJIcl6ZXqBMCK0qFevqT1>.
73
67B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. 74B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
68 75
69=cut 76=cut