pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Horoschun <mhoroschun@canprint.com.au>
To: pgsql-php@postgresql.org
Subject: Fwd: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table
Date: Tue, 21 Jan 2003 11:14:28 +1100
Message-ID: <4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au> (raw)

Hi All,

I've figured this out myself... but I thought I might just let the list 
archives know so that others don't need to work it out for themselves.

To create a md5 password suitable for use in the PostgreSQL pg_shadow 
table:

$md5_passwd = 'md5' . md5( $password . $username );

The username acts as salt.


Matthew.




view thread (5+ messages)  latest in thread

Message-ID: <4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au>
Permalink:  ../4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au/
Also on:    postgresql.org/message-id/4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au

 · 

reply

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: mhoroschun@canprint.com.au
  Subject: Re: Fwd: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table
  In-Reply-To: <4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au>
  References: <4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au>

* 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