pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: pgsql-php@postgresql.org
Subject: Re: MD5 in pg and php
Date: Thu, 29 Apr 2004 16:30:33 +0800
Message-ID: <4090BD29.7050406@familyhealth.com.au> (raw)
In-Reply-To: <20040429081530.GA8282@localhost.localdomain>
References: <20040429070716.GA6918@localhost.localdomain>
	<4090BD52.9060708@lewczuk.com>
	<20040429081530.GA8282@localhost.localdomain>

> Thanks, I already found some fc1 rpm's (still in development). But can
> anyone tell me if the 7.4 internal md5() function will do the same as
> the PHP md5() function? Or do a quick select md5('apple') and let me
> know if the result is 'ae6d32585ecc4d33cb8cd68a047d8434'?
> 
> I really wouldn't like to upgrade from my current stable situation,
> only to find out that it didn't solve my original problem.

Postgres 7.4:

usa=> select md5('apple');
                md5
----------------------------------
  1f3870be274f6c49b3e31a0c6728957f
(1 row)


And my PHP:

bash-2.05a$ php -q
<?php echo md5('apple') ?>
1f3870be274f6c49b3e31a0c6728957f

So mine are the same, but yours is completely different to anything.

Chris




view thread (10+ messages)  latest in thread

Message-ID: <4090BD29.7050406@familyhealth.com.au>
Permalink:  ../4090BD29.7050406@familyhealth.com.au/
Also on:    postgresql.org/message-id/4090BD29.7050406@familyhealth.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: chriskl@familyhealth.com.au
  Subject: Re: MD5 in pg and php
  In-Reply-To: <4090BD29.7050406@familyhealth.com.au>
  References: <20040429070716.GA6918@localhost.localdomain> <4090BD52.9060708@lewczuk.com> <20040429081530.GA8282@localhost.localdomain> <4090BD29.7050406@familyhealth.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