Skip to content

Commit 9c29138

Browse files
committed
docs: clarify references to md5 hash and md5 crypt in pgcrypto docs
Suggestion from Richard Neill
1 parent 9299f61 commit 9c29138

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

doc/src/sgml/pgcrypto.sgml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ hmac(data bytea, key text, type text) returns bytea
9595
</para>
9696

9797
<para>
98-
The algorithms in <function>crypt()</> differ from usual hashing algorithms
99-
like MD5 or SHA1 in the following respects:
98+
The algorithms in <function>crypt()</> differ from the usual
99+
MD5 or SHA1 hashing algorithms in the following respects:
100100
</para>
101101

102102
<orderedlist>
@@ -142,6 +142,7 @@ hmac(data bytea, key text, type text) returns bytea
142142
<entry>Max Password Length</entry>
143143
<entry>Adaptive?</entry>
144144
<entry>Salt Bits</entry>
145+
<entry>Output length</entry>
145146
<entry>Description</entry>
146147
</row>
147148
</thead>
@@ -151,27 +152,31 @@ hmac(data bytea, key text, type text) returns bytea
151152
<entry>72</entry>
152153
<entry>yes</entry>
153154
<entry>128</entry>
155+
<entry>60</entry>
154156
<entry>Blowfish-based, variant 2a</entry>
155157
</row>
156158
<row>
157159
<entry><literal>md5</></entry>
158160
<entry>unlimited</entry>
159161
<entry>no</entry>
160162
<entry>48</entry>
163+
<entry>34</entry>
161164
<entry>MD5-based crypt</entry>
162165
</row>
163166
<row>
164167
<entry><literal>xdes</></entry>
165168
<entry>8</entry>
166169
<entry>yes</entry>
167170
<entry>24</entry>
171+
<entry>20</entry>
168172
<entry>Extended DES</entry>
169173
</row>
170174
<row>
171175
<entry><literal>des</></entry>
172176
<entry>8</entry>
173177
<entry>no</entry>
174178
<entry>12</entry>
179+
<entry>13</entry>
175180
<entry>Original UNIX crypt</entry>
176181
</row>
177182
</tbody>
@@ -205,7 +210,7 @@ UPDATE ... SET pswhash = crypt('new password', gen_salt('md5'));
205210
<para>
206211
Example of authentication:
207212
<programlisting>
208-
SELECT pswhash = crypt('entered password', pswhash) FROM ... ;
213+
SELECT (pswhash = crypt('entered password', pswhash)) AS pswmatch FROM ... ;
209214
</programlisting>
210215
This returns <literal>true</> if the entered password is correct.
211216
</para>
@@ -353,7 +358,7 @@ gen_salt(type text [, iter_count integer ]) returns text
353358
<entry>12 years</entry>
354359
</row>
355360
<row>
356-
<entry><literal>md5</></entry>
361+
<entry><literal>md5 hash</></entry>
357362
<entry>2345086</entry>
358363
<entry>1 day</entry>
359364
<entry>3 years</entry>
@@ -380,7 +385,7 @@ gen_salt(type text [, iter_count integer ]) returns text
380385
</listitem>
381386
<listitem>
382387
<para>
383-
<literal>md5</> numbers are from mdcrack 1.2.
388+
<literal>md5 hash</> numbers are from mdcrack 1.2.
384389
</para>
385390
</listitem>
386391
<listitem>
@@ -1343,7 +1348,7 @@ gen_random_bytes(count integer) returns bytea
13431348
<entry>OpenBSD sys/crypto</entry>
13441349
</row>
13451350
<row>
1346-
<entry>MD5 and SHA1</entry>
1351+
<entry>MD5 hash and SHA1</entry>
13471352
<entry>WIDE Project</entry>
13481353
<entry>KAME kame/sys/crypto</entry>
13491354
</row>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy