On 1/21/08, Tom Lane <[EMAIL PROTECTED]> wrote: > > MD5 is broken in the sense that you can create two or more meaningful > > documents with the same hash. > > Note that this isn't actually very interesting for the purpose for > which the md5() function was put into core: namely, hashing passwords > before they are stored in pg_authid.
Note: this was bad idea. The function that should have been added to core would be pg_password_hash(username, password). Adding md5() lessens incentive to install pgcrypto or push/accept digest() into core and gives impression there will be sha1(), etc in the future. Now users who want to store passwords in database (the most popular usage) will probably go with md5() without bothering with pgcrypto. They probably see "Postgres itself uses MD5 too", without realizing their situation is totally different from pg_authid one. It's like we have solution that is ACID-compliant 99% of the time in core, so why bother with 100% one. -- marko ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org