Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 439739FB252 for ; Wed, 7 Mar 2007 16:17:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 57532-09 for ; Wed, 7 Mar 2007 16:17:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 3299A9FB3B4 for ; Wed, 7 Mar 2007 16:17:37 -0400 (AST) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1HP2p8-0003rZ-OW for pgsql-sql@postgresql.org; Wed, 07 Mar 2007 15:33:22 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 4CAF93FAF; Wed, 7 Mar 2007 15:17:31 -0500 (EST) Date: Wed, 7 Mar 2007 15:17:31 -0500 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: SHA-1 vs MD5 Message-ID: <20070307201731.GF19042@phlogiston.dyndns.org> References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/75 X-Sequence-Number: 27713 On Wed, Mar 07, 2007 at 05:04:18PM -0300, Ezequias Rodrigues da Rocha wrote: > Hi list, > > I know that there is a md5 internal function on postgresql, but I noticed > that it isn't the more secure today. I would like to know if there is a > SHA-1 function implemented yet of, if not, if the team has plan to introduce > it on PostgreSQL. What is the problem you're trying to solve? Md5 is probably good enough for many cases, but for long-term use, you're right that sha-1 is what you need. Actually, you need sha-256, quite frankly. a -- Andrew Sullivan | ajs@crankycanuck.ca I remember when computers were frustrating because they *did* exactly what you told them to. That actually seems sort of quaint now. --J.D. Baldwin