Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 40AE5476059 for ; Mon, 20 Jan 2003 19:15:34 -0500 (EST) Received: from neuromancer.canprint.com.au (mail.canprint.com.au [198.142.3.43]) by postgresql.org (Postfix) with ESMTP id B31CA475EEB for ; Mon, 20 Jan 2003 19:15:32 -0500 (EST) Received: (from root@localhost) by neuromancer.canprint.com.au (8.12.6/8.11.1) id h0L0FYSL071651 for pgsql-php@postgresql.org; Tue, 21 Jan 2003 11:15:34 +1100 (EST) (envelope-from mhoroschun@canprint.com.au) Received: from canprint.com.au (cp252.canprint.intranet [192.168.1.252]) by neuromancer.canprint.com.au (8.12.6/8.11.1) with ESMTP id h0L0EWfP071608 for ; Tue, 21 Jan 2003 11:15:32 +1100 (EST) (envelope-from mhoroschun@canprint.com.au) Date: Tue, 21 Jan 2003 11:14:28 +1100 Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Fwd: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table From: Matthew Horoschun To: pgsql-php@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: <4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au> X-Mailer: Apple Mail (2.551) X-Virus-Scanned: by Sophos SWEEP at CanPrint Communications X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/22 X-Sequence-Number: 1767 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.