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.pod21
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
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>]
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>
21The B<passwd> command computes the hash of a password typed at 23The 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 24run-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 25taken from the named file for option B<-in file>, from stdin for
24option B<-stdin>, and from the command line otherwise. 26option B<-stdin>, or from the command line, or from the terminal otherwise.
25The Unix standard algorithm B<crypt> and the MD5-based B<apr1> algorithm 27The Unix standard algorithm B<crypt> and the MD5-based BSD password
26are available. 28algorithm 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
34Use the B<crypt> algorithm (default). 36Use the B<crypt> algorithm (default).
35 37
38=item B<-1>
39
40Use the MD5 based BSD password algorithm B<1>.
41
36=item B<-apr1> 42=item B<-apr1>
37 43
38Use the B<apr1> algorithm. 44Use 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
42Use the specified salt. 48Use the specified salt.
49When 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
50Read passwords from B<stdin>. 57Read passwords from B<stdin>.
51 58
59=item B<-noverify>
60
61Don't verify when reading a password from the terminal.
62
52=item B<-quiet> 63=item B<-quiet>
53 64
54Don't output warnings when passwords given at the command line are truncated. 65Don't output warnings when passwords given at the command line are truncated.
@@ -64,6 +75,8 @@ to each password hash.
64 75
65B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>. 76B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
66 77
78B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$8XJIcl6ZXqBMCK0qFevqT1>.
79
67B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>. 80B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
68 81
69=cut 82=cut