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 D8AA8D1CA29 for ; Thu, 29 Apr 2004 05:27:31 -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 43185-02 for ; Thu, 29 Apr 2004 05:25:45 -0300 (ADT) Received: from houston.familyhealth.com.au (fhnet.arach.net.au [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id B8D61D1B432 for ; Thu, 29 Apr 2004 05:25:42 -0300 (ADT) Received: from familyhealth.com.au (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9p1/8.12.9) with ESMTP id i3T8PRWL074277 for ; Thu, 29 Apr 2004 16:25:27 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <4090BD29.7050406@familyhealth.com.au> Date: Thu, 29 Apr 2004 16:30:33 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: Re: MD5 in pg and php References: <20040429070716.GA6918@localhost.localdomain> <4090BD52.9060708@lewczuk.com> <20040429081530.GA8282@localhost.localdomain> In-Reply-To: <20040429081530.GA8282@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/52 X-Sequence-Number: 2709 > 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 1f3870be274f6c49b3e31a0c6728957f So mine are the same, but yours is completely different to anything. Chris