diff options
Diffstat (limited to 'src/lib/libssl/src/doc/apps/passwd.pod')
-rw-r--r-- | src/lib/libssl/src/doc/apps/passwd.pod | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/lib/libssl/src/doc/apps/passwd.pod b/src/lib/libssl/src/doc/apps/passwd.pod index cee6a2f172..07d849c824 100644 --- a/src/lib/libssl/src/doc/apps/passwd.pod +++ b/src/lib/libssl/src/doc/apps/passwd.pod | |||
@@ -8,10 +8,12 @@ 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>] |
14 | [B<-stdin>] | 15 | [B<-stdin>] |
16 | [B<-noverify>] | ||
15 | [B<-quiet>] | 17 | [B<-quiet>] |
16 | [B<-table>] | 18 | [B<-table>] |
17 | {I<password>} | 19 | {I<password>} |
@@ -21,9 +23,9 @@ B<openssl passwd> | |||
21 | The B<passwd> command computes the hash of a password typed at | 23 | 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 | 24 | 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 | 25 | taken from the named file for option B<-in file>, from stdin for |
24 | option B<-stdin>, and from the command line otherwise. | 26 | option B<-stdin>, or from the command line, or from the terminal otherwise. |
25 | The Unix standard algorithm B<crypt> and the MD5-based B<apr1> algorithm | 27 | The Unix standard algorithm B<crypt> and the MD5-based BSD password |
26 | are available. | 28 | algorithm B<1> and its Apache variant B<apr1> are available. |
27 | 29 | ||
28 | =head1 OPTIONS | 30 | =head1 OPTIONS |
29 | 31 | ||
@@ -33,13 +35,18 @@ are available. | |||
33 | 35 | ||
34 | Use the B<crypt> algorithm (default). | 36 | Use the B<crypt> algorithm (default). |
35 | 37 | ||
38 | =item B<-1> | ||
39 | |||
40 | Use the MD5 based BSD password algorithm B<1>. | ||
41 | |||
36 | =item B<-apr1> | 42 | =item B<-apr1> |
37 | 43 | ||
38 | Use the B<apr1> algorithm. | 44 | Use the B<apr1> algorithm (Apache variant of the BSD algorithm). |
39 | 45 | ||
40 | =item B<-salt> I<string> | 46 | =item B<-salt> I<string> |
41 | 47 | ||
42 | Use the specified salt. | 48 | Use the specified salt. |
49 | When reading a password from the terminal, this implies B<-noverify>. | ||
43 | 50 | ||
44 | =item B<-in> I<file> | 51 | =item B<-in> I<file> |
45 | 52 | ||
@@ -49,6 +56,10 @@ Read passwords from I<file>. | |||
49 | 56 | ||
50 | Read passwords from B<stdin>. | 57 | Read passwords from B<stdin>. |
51 | 58 | ||
59 | =item B<-noverify> | ||
60 | |||
61 | Don't verify when reading a password from the terminal. | ||
62 | |||
52 | =item B<-quiet> | 63 | =item B<-quiet> |
53 | 64 | ||
54 | Don't output warnings when passwords given at the command line are truncated. | 65 | Don't output warnings when passwords given at the command line are truncated. |
@@ -64,6 +75,8 @@ to each password hash. | |||
64 | 75 | ||
65 | B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. | 76 | B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. |
66 | 77 | ||
78 | B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$8XJIcl6ZXqBMCK0qFevqT1>. | ||
79 | |||
67 | B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. | 80 | B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. |
68 | 81 | ||
69 | =cut | 82 | =cut |