diff options
Diffstat (limited to 'src/lib/libssl/src/doc/apps/passwd.pod')
-rw-r--r-- | src/lib/libssl/src/doc/apps/passwd.pod | 13 |
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 | ||
9 | B<openssl passwd> | 9 | B<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 | |||
22 | run-time or the hash of each password in a list. The password list is | 23 | run-time or the hash of each password in a list. The password list is |
23 | taken from the named file for option B<-in file>, from stdin for | 24 | taken from the named file for option B<-in file>, from stdin for |
24 | option B<-stdin>, and from the command line otherwise. | 25 | option B<-stdin>, and from the command line otherwise. |
25 | The Unix standard algorithm B<crypt> and the MD5-based B<apr1> algorithm | 26 | The Unix standard algorithm B<crypt> and the MD5-based BSD password |
26 | are available. | 27 | algorithm 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 | ||
34 | Use the B<crypt> algorithm (default). | 35 | Use the B<crypt> algorithm (default). |
35 | 36 | ||
37 | =item B<-1> | ||
38 | |||
39 | Use the MD5 based BSD password algorithm B<1>. | ||
40 | |||
36 | =item B<-apr1> | 41 | =item B<-apr1> |
37 | 42 | ||
38 | Use the B<apr1> algorithm. | 43 | Use 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 | ||
65 | B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. | 70 | B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. |
66 | 71 | ||
72 | B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$8XJIcl6ZXqBMCK0qFevqT1>. | ||
73 | |||
67 | B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. | 74 | B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. |
68 | 75 | ||
69 | =cut | 76 | =cut |