Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C53489FBCFC for ; Thu, 1 Mar 2007 09:25:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 83898-09 for ; Thu, 1 Mar 2007 09:25:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from a2s5.a2hosting.com (a2s5.a2hosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id 9CEFF9FBC9A for ; Thu, 1 Mar 2007 09:25:34 -0400 (AST) Received: from adsl-155-107-212.tys.bellsouth.net ([72.155.107.212] helo=[192.168.1.12]) by a2s5.a2hosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1HMlHo-00015x-Oz; Thu, 01 Mar 2007 08:25:32 -0500 In-Reply-To: <675205.64473.qm@web55615.mail.re4.yahoo.com> References: <675205.64473.qm@web55615.mail.re4.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <95880380-1F04-44B5-9353-BAB84955748E@pgedit.com> Cc: Andrej Ricnik-Bay , PostgreSQL Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: How to store a password encripted in a user defined table Date: Thu, 1 Mar 2007 08:25:28 -0500 To: Eugenio Flores X-Mailer: Apple Mail (2.752.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/7 X-Sequence-Number: 27645 MD5 is built-in to PostgreSQL. It is what PostgreSQL itself uses to hash passwords. For example: select md5('this is my password'); md5 ---------------------------------- 210d53992dff432ec1b1a9698af9da16 (1 row) On Mar 1, 2007, at 6:06 AM, Eugenio Flores wrote: > Thanks Andrej. But how can I use such algoritms in postgresql? arey > they defined in a function that I can call? > > Or, do I have to code one of those algorithm to use it in my > application? John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL