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

Re: MD5 in pg and php

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: MD5 in pg and php
Date: 2004-04-29 08:30:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
> 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');
(1 row)

And my PHP:

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

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


In response to

pgsql-php by date

Next:From: Marek LewczukDate: 2004-04-29 08:31:14
Subject: Re: MD5 in pg and php
Previous:From: JoolzDate: 2004-04-29 08:15:30
Subject: Re: MD5 in pg and php

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