From: | "Marko Kreen" <markokr(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Florian Weimer" <fweimer(at)bfk(dot)de>, "David Fetter" <david(at)fetter(dot)org>, "Greg Sabino Mullane" <greg(at)turnstep(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [GENERAL] SHA1 on postgres 8.3 |
Date: | 2008-01-21 16:16:57 |
Message-ID: | e51f66da0801210816t70651787paca33eacbea7b930@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 1/21/08, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Jones | 2008-01-21 16:19:34 | Re: WARNINGs after starting backup server created with PITR |
Previous Message | Marko Kreen | 2008-01-21 16:02:48 | Re: [GENERAL] SHA1 on postgres 8.3 |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-01-21 16:17:19 | Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce |
Previous Message | Marko Kreen | 2008-01-21 16:02:48 | Re: [GENERAL] SHA1 on postgres 8.3 |