From: Bruno Wolff III <bruno@wolff.to>
To: list-postgresql-php <pgsql-php@postgresql.org>
Subject: Re: MD5 in pg and php
Date: Thu, 29 Apr 2004 05:11:29 -0500
Message-ID: <20040429101129.GC26489@wolff.to> (raw)
In-Reply-To: <20040429070716.GA6918@localhost.localdomain>
References: <20040429070716.GA6918@localhost.localdomain>
On Thu, Apr 29, 2004 at 09:07:16 +0200,
Joolz <joolz@xs4all.nl> wrote:
>
> I want to store passwords in a pg db, MD5 seems like a good way to
> enhance security (no more plaintext passwords over the line etc.) I
> had a look at MD5, in PHP 4.3.4 there is a function md5() which seems
> to work nicely:
This may not help as much as you think. If you are using an ssl connection,
the passwords won't be sent in the clear. If you aren't using an ssl
connection the hashes will be in clear. I don't believe the postgres
uses a random challenge so that you won't really raise the bar much.
Plus if snooping passwords is a threat, most likely snooping data will
be as well (though not always) and forcing connections to use ssl may be
your best bet. I believe as typically used this is vulnerable to man in
the middle attacks, but these are going to be significantly harder to do than
simple snooping.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: bruno@wolff.to
Subject: Re: MD5 in pg and php
In-Reply-To: <20040429101129.GC26489@wolff.to>
References: <20040429070716.GA6918@localhost.localdomain> <20040429101129.GC26489@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox