From: | Matthew Horoschun <mhoroschun(at)canprint(dot)com(dot)au> |
---|---|
To: | "David Busby" <busby(at)pnts(dot)com> |
Cc: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table |
Date: | 2003-01-20 22:10:16 |
Message-ID: | F4D15C98-2CC3-11D7-B205-000393B3A702@canprint.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Hi David,
Thanks for the reply.
Unfortunately, thats not quite the problem. I want to create passwords
that will work in the pg_shadow table. So, I need them to be calculated
in exactly the same way PostgreSQL does when you do a CREATE USER
matthew WITH PASSWORD testing.
For example, If I create a user in PostgreSQL called 'matthew' with
password 'testing', I get pg_shadow entry with passwd:
md5759af56ffaf865413f7a50b4fae20ea3
but, if I do a simple md5 of 'testing' like you've done below, I get:
ae2b1fca515949e5d54fb22b8ed95575
As you can see, those don't match.
Perhaps I'm missing something though?
Cheers
Matthew.
On Tuesday, January 21, 2003, at 05:27 AM, David Busby wrote:
> Matthew,
> I just use something like
> $pass = $_POST['pass'];
> $e_pass = md5($passs);
> Maybe not as secure as two md5s, but have you ever tried to
> reverse one
> md5 checksum?
--
Matthew Horoschun
Network Administrator
CanPrint Communications Pty. Ltd.
Mobile: 0417 282 378
Direct: (02) 6295 4544
Telephone: (02) 6295 4422
Facsimile: (02) 6295 4473
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Horoschun | 2003-01-21 00:14:28 | Fwd: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table |
Previous Message | Matthew Horoschun | 2003-01-20 11:37:42 | Creating md5 passwords in PHP for the PostgreSQL pg_shadow table |