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 19C70D1E61D for ; Thu, 13 May 2004 02:14:46 -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 90003-06 for ; Thu, 13 May 2004 02:14:25 -0300 (ADT) Received: from smtp-out3.xs4all.nl (smtp-out3.xs4all.nl [194.109.24.13]) by svr1.postgresql.org (Postfix) with ESMTP id D7F8FD1E33C for ; Thu, 13 May 2004 02:14:23 -0300 (ADT) Received: from localhost.localdomain (kiar.xs4all.nl [80.126.234.5]) by smtp-out3.xs4all.nl (8.12.10/8.12.10) with ESMTP id i4D5EOpK007828 for ; Thu, 13 May 2004 07:14:24 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 500) id 0D330B6EDA; Thu, 13 May 2004 07:14:24 +0200 (CEST) Date: Thu, 13 May 2004 07:14:24 +0200 From: Joolz To: Lista PG-PHP Subject: Re: field md5 Message-ID: <20040513051424.GA2640@localhost.localdomain> Reply-To: pgsql-php@postgresql.org Mail-Followup-To: Lista PG-PHP References: <1084199317.2679.3.camel@dune.kolareal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1084199317.2679.3.camel@dune.kolareal.net> 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: 200405/20 X-Sequence-Number: 2739 > [Joe Nilson Zegarra Galvez schreef op 10-05-2004 09:28 -0500] > > Hi, i'm working with a table that must have the password field crypted > in md5 with php, i'm using a 7.3.4-RH Postgresql version, how i can set > the type of the field?, if the password must have 12 how max length but > is stored in md5?. FYI, I heard that 7.4 has a md5 function on board, so you wouldn't have to depend on the php function. A better choice IMO. This way you can change your interface to another script language and still have the functionality. As to the length: why not simply make it varchar and let pg handle the storage? IIRC there is no difference between 2 filled varchar(10) fields and 2 filled varchar fields. > And is stable the 7.4.2? o r i must wait to the RHDB next release to > upgrade my postgres?. > > Thankx 4 all > > Regards > > > Joe Nilson > > -- 07:11-07:14 Fedora Core release 1 (Yarrow) Linux 2.4.22-1.2188.nptl