X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DFBDCD1E5C1 for ; Thu, 29 Apr 2004 05:54:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 41899-08 for ; Thu, 29 Apr 2004 05:54:11 -0300 (ADT) Received: from smtp-out4.xs4all.nl (smtp-out4.xs4all.nl [194.109.24.5]) by svr1.postgresql.org (Postfix) with ESMTP id F2DDAD1E5C2 for ; Thu, 29 Apr 2004 05:54:08 -0300 (ADT) Received: from localhost.localdomain (kiar.xs4all.nl [80.126.234.5]) by smtp-out4.xs4all.nl (8.12.10/8.12.10) with ESMTP id i3T8sABT058889 for ; Thu, 29 Apr 2004 10:54:10 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 500) id D6201B6EC4; Thu, 29 Apr 2004 10:54:09 +0200 (CEST) Date: Thu, 29 Apr 2004 10:54:09 +0200 From: Joolz To: pgsql-php@postgresql.org Subject: Re: MD5 in pg and php Message-ID: <20040429085409.GA8725@localhost.localdomain> Reply-To: pgsql-php@postgresql.org Mail-Followup-To: pgsql-php@postgresql.org References: <20040429070716.GA6918@localhost.localdomain> <4090BD52.9060708@lewczuk.com> <20040429081530.GA8282@localhost.localdomain> <4090CFB5.5030809@lewczuk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4090CFB5.5030809@lewczuk.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/55 X-Sequence-Number: 2712 > [Marek Lewczuk schreef op 29-04-2004 10:49 +0100] > > Joolz wrote: > >>[Marek Lewczuk schreef op 29-04-2004 09:31 +0100] > >> > >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. > > > >TIA! > > > > I have 7.4.1 version and "select md5('apple')" returns: > 1f3870be274f6c49b3e31a0c6728957f > > But I have checked in my PHP 4.3 what will return md5('apple') and: > 1f3870be274f6c49b3e31a0c6728957f > > So as you see there are the same - but they are different from your result. Thanks for testing this! I'm not sure if I'm happy with the outcome... Seems as if the result of both md5() functions depends on something outside of PHP and postgresql... Which could mean that if I backup my db and restore it on another server (which of course should be possible) all my passwords will be broken :-( I guess I'll have to take a better look at how md5 works... Thanks again! -- 10:50-10:54 Fedora Core release 1 (Yarrow) Linux 2.4.22-1.2188.nptl