Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2156D9FB7C9 for ; Wed, 7 Mar 2007 16:31:45 -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 61881-01 for ; Wed, 7 Mar 2007 16:31:30 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by postgresql.org (Postfix) with ESMTP id F2E1D9FB70D for ; Wed, 7 Mar 2007 16:31:40 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id i28so283850wxd for ; Wed, 07 Mar 2007 12:31:40 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P5Kh9vKs2UU9/R/k3bhMJcsm5a9mgEYmZWi7+uSBWhaDpHgM5IHkeCsWlnlL3ZcAicHxhM0EW7nWhA+cNvkIOrtzaNqG0L+j/kJWPR2RUuCGvO/l2tmVFJBxtLssXOiqyzeXD9Sai1B73bUD7R8qfdB0J8TsVC5wMhuXSHlYLoQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V2EPpw5M/ss8BxJaV0uGLK9onurs2ju9sM/NJzonfVNpS+ilQA4PtFIggp+O1O+V3iKrcEO031CjNDf9UV7pGf+qaxs3RYXfTrvGbN2HTrGWMTCmeCU5030o29y+Eagmp65oOcAfsLCkMfzxo0n31b7fNe5p14Sf8pzD5WM52GM= Received: by 10.90.113.18 with SMTP id l18mr7665129agc.1173299499990; Wed, 07 Mar 2007 12:31:39 -0800 (PST) Received: by 10.90.113.6 with HTTP; Wed, 7 Mar 2007 12:31:39 -0800 (PST) Message-ID: Date: Thu, 8 Mar 2007 09:31:39 +1300 From: "Andrej Ricnik-Bay" To: "Andrew Sullivan" Subject: Re: SHA-1 vs MD5 Cc: pgsql-sql@postgresql.org In-Reply-To: <20070307201731.GF19042@phlogiston.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <20070307201731.GF19042@phlogiston.dyndns.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/76 X-Sequence-Number: 27714 On 3/8/07, Andrew Sullivan wrote: > 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. Looking at his last mail he's after a password hash. To the OP: Currently there's no support in pg for sha algorithms, but you could always implement those in your application and store the hash in pg that way. Cheers, Andrej