Skip site navigation (1) Skip section navigation (2)

Fwd: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table

From: Matthew Horoschun <mhoroschun(at)canprint(dot)com(dot)au>
To: pgsql-php(at)postgresql(dot)org
Subject: Fwd: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table
Date: 2003-01-21 00:14:28
Message-ID: 4E773CE0-2CD5-11D7-B205-000393B3A702@canprint.com.au (view raw or flat)
Thread:
Lists: pgsql-php
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.


pgsql-php by date

Next:From: Matthew HoroschunDate: 2003-01-21 03:30:03
Subject: Re: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table
Previous:From: Matthew HoroschunDate: 2003-01-20 22:10:16
Subject: Re: Creating md5 passwords in PHP for the PostgreSQL pg_shadow table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group