From ezequias.rocha@gmail.com Wed Mar 7 20:11:51 2007 Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0CE369FB463 for ; Wed, 7 Mar 2007 16:11:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 94774-03 for ; Wed, 7 Mar 2007 16:11:45 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by postgresql.org (Postfix) with ESMTP id DD8AB9FB42D for ; Wed, 7 Mar 2007 16:11:46 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so638583ugf for ; Wed, 07 Mar 2007 12:11:42 -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:mime-version:content-type; b=jtuVlLYudatoN073x60YaSm7+D2sxDQiMbdmq97VUR6uOMyTZd324fazYfz2QBiO5iM6YoTntHu0KcEfuZBSKRiHxEDBypSfOmjIcbVtlqKQ2lafa/xoVhH2P6ok4xpXVkg8euKb5A3+6e5+k11zv7mXQLruvH7BrlHTtDt8VoU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Pv79JmPdauSOR33GAGY5L0Mh9v8NMcf/X2jXXj/dm+CTpAUwgM9GbUpLEeqYhr3J/v04o78nMu38bj8hYUOyFFw76LJWLfk9UVAIAim0ZhvmUz7a+xjP02WIWpPNRnJvTF4DHZjx61PQuTSLDr8/a0aZyJ327Phhzem+U4A4M8s= Received: by 10.67.21.11 with SMTP id y11mr5044540ugi.1173297858865; Wed, 07 Mar 2007 12:04:18 -0800 (PST) Received: by 10.67.94.13 with HTTP; Wed, 7 Mar 2007 12:04:18 -0800 (PST) Message-ID: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> Date: Wed, 7 Mar 2007 17:04:18 -0300 From: "Ezequias Rodrigues da Rocha" To: PostgreSQL Subject: SHA-1 vs MD5 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_98920_6588365.1173297858569" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/74 X-Sequence-Number: 27712 ------=_Part_98920_6588365.1173297858569 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. Regards ... -- Ezequias Rodrigues da Rocha http://ezequiasrocha.blogspot.com/ use Mozilla Firefox:http://br.mozdev.org/firefox/ ------=_Part_98920_6588365.1173297858569 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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.

Regards ...

--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com/
use Mozilla Firefox: http://br.mozdev.org/firefox/ ------=_Part_98920_6588365.1173297858569-- From ajs@crankycanuck.ca Wed Mar 7 20:17:42 2007 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 From andrej.groups@gmail.com Wed Mar 7 20:31:45 2007 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 From chad.wagner@gmail.com Wed Mar 7 21:44:47 2007 Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 7F93A9FA46C for ; Wed, 7 Mar 2007 17:44:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 16266-04 for ; Wed, 7 Mar 2007 17:44:40 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 154639FA42F for ; Wed, 7 Mar 2007 17:44:42 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so362923nfb for ; Wed, 07 Mar 2007 13:44:41 -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:references; b=sIFV/FL07kVUGcinPIwXpYK3dhPZ8DFEOPxFTquJCTgEj7FJ+V1/sYG7DekjIQayHXHXEG+wENniCAo2AA1EeQ4rsIgbk7XHdZYFoRpO2PkiUbI7zM/CZFNqv+QdN6WhhlmtH5nqh6I1wlPmiaTMRO7gdm9OUaYhkW8NlUBF/FM= 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:references; b=d1EY/QgLuLdZehOeHp+vvUsdVXTZOFuiuPpUHBCJq9Yyx7a5yPdHFtCW7dFo237zxsE8khUP+EElWUPAgRp+MINNv1r2BIqtZs392ZoaR8NTNoZKiEXLnBk4QmjGK3KKg0hF940fRdduvdDIkVN2DqMsBHGj23shhz+4P15kCxA= Received: by 10.82.107.15 with SMTP id f15mr10171739buc.1173303881008; Wed, 07 Mar 2007 13:44:41 -0800 (PST) Received: by 10.49.75.11 with HTTP; Wed, 7 Mar 2007 13:44:39 -0800 (PST) Message-ID: <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> Date: Wed, 7 Mar 2007 16:44:39 -0500 From: "Chad Wagner" To: "Ezequias Rodrigues da Rocha" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_156829_9189541.1173303879663" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/79 X-Sequence-Number: 27717 ------=_Part_156829_9189541.1173303879663 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/7/07, Ezequias Rodrigues da Rocha wrote: > > 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. You are probably looking for the pgcrypto contribution, look in the contrib directory for it. test=# select encode(digest('blahblah', 'sha256'), 'hex'); encode ------------------------------------------------------------------ 40b1bbb5445fc021a312315379f4633284851e14d1db83fb0730f58872d6033b (1 row) -- Chad http://www.postgresqlforums.com/ ------=_Part_156829_9189541.1173303879663 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/7/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
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.

You are probably looking for the pgcrypto contribution, look in the contrib directory for it.

test=# select encode(digest('blahblah', 'sha256'), 'hex');
                              encode                             
------------------------------------------------------------------
 40b1bbb5445fc021a312315379f4633284851e14d1db83fb0730f58872d6033b
(1 row)




--
Chad
http://www.postgresqlforums.com/ ------=_Part_156829_9189541.1173303879663-- From ezequias.rocha@gmail.com Thu Mar 8 11:39:31 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id DBC8D9FB6F3 for ; Thu, 8 Mar 2007 07:39:31 -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 78780-08 for ; Thu, 8 Mar 2007 07:39:23 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id D7F5D9FB43D for ; Thu, 8 Mar 2007 07:39:27 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so862723ugf for ; Thu, 08 Mar 2007 03:39:26 -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:references; b=P9HE9069sP3PyFi+uwBxSDKS0gk2o2jouG+PiJzS2bxUlzqg+4ZAB+Twn9mIZch8bihvoZDGOQr2QfPEJ//Wh8Jzn+J5+bfbmaeGTsJzDm7kQCXo5kcOePSZHUZupQCAt4KMH4pJQDDxHM/JR5vij9Wj4TCdRosMxATYtyC1+Ag= 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:references; b=hjvEWmt+X2L8Fs3+/IcpFMbf39//LgQlvMYHLyXPw8CJ6gVOY1NLQu93owGq3nWdubxvSXoz04Rvp8QUTol+XRQsi+c+7o71BiC6+MTf/+dFh0OpVdJSNkCFiIqqtUSHWncbSROSr6n+pqEpmojMvZgvOwFGobnLjdp2E8MrRy4= Received: by 10.67.97.7 with SMTP id z7mr6720007ugl.1173353966346; Thu, 08 Mar 2007 03:39:26 -0800 (PST) Received: by 10.67.94.13 with HTTP; Thu, 8 Mar 2007 03:39:26 -0800 (PST) Message-ID: <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> Date: Thu, 8 Mar 2007 08:39:26 -0300 From: "Ezequias Rodrigues da Rocha" To: "Chad Wagner" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_104756_26917448.1173353966069" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/80 X-Sequence-Number: 27718 ------=_Part_104756_26917448.1173353966069 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I really don't have the pgcrypto. It could be a nice alternative. Could you tell me the steps to install it ? I am very concerned about security in my application becouse we are going to moviment a large ammount of information and money. As much i take care of it as good. I know some problem of MD5 and know it is very good too. If someone could tell me where MD5 is used I could be more relaxed. My best regards to all -- Ezequias Rodrigues da Rocha http://ezequiasrocha.blogspot.com/ use Mozilla Firefox:http://br.mozdev.org/firefox/ 2007/3/7, Chad Wagner : > > On 3/7/07, Ezequias Rodrigues da Rocha wrote: > > > > 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. > > > You are probably looking for the pgcrypto contribution, look in the > contrib directory for it. > > test=# select encode(digest('blahblah', 'sha256'), 'hex'); > encode > ------------------------------------------------------------------ > 40b1bbb5445fc021a312315379f4633284851e14d1db83fb0730f58872d6033b > (1 row) > > > > > -- > Chad > http://www.postgresqlforums.com/ ------=_Part_104756_26917448.1173353966069 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I really don't have the pgcrypto. It could be a nice alternative. Could you tell me the steps to install it ?

I am very concerned about security in my application becouse we are going to moviment a large ammount of information and money. As much i take care of it as good.

I know some problem of MD5 and know it is very good too. If someone could tell me where MD5 is used I could be more relaxed.

My best regards to all


--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com/
use Mozilla Firefox:http://br.mozdev.org/firefox/

2007/3/7, Chad Wagner <chad.wagner@gmail.com>:
On 3/7/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com > wrote:
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.

You are probably looking for the pgcrypto contribution, look in the contrib directory for it.

test=# select encode(digest('blahblah', 'sha256'), 'hex');
                              encode                             
------------------------------------------------------------------
 40b1bbb5445fc021a312315379f4633284851e14d1db83fb0730f58872d6033b
(1 row)




--
Chad
http://www.postgresqlforums.com/



------=_Part_104756_26917448.1173353966069-- From chad.wagner@gmail.com Thu Mar 8 14:52:34 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CB8169FBA9B for ; Thu, 8 Mar 2007 10:52:34 -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 78006-08 for ; Thu, 8 Mar 2007 10:52:33 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by postgresql.org (Postfix) with ESMTP id 4B4E39FBA71 for ; Thu, 8 Mar 2007 10:52:31 -0400 (AST) Received: by nz-out-0506.google.com with SMTP id r28so405755nza for ; Thu, 08 Mar 2007 06:52:30 -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:references; b=Mu63O07Aj6eoBC/CRXAomJJH5Qu7cAkADvhClViCEmTbNHjlOu9DqqCMZ64d+sa9gAqF9WRaK02ES1/ge2x/VlsegSNRkqNwtFO4wahe74mCvj5DnV1rPjbWXqeMGMQsys5wRVqHRGu5+Q2SkIhKg1WxIvTF5M3EUa4Ry6F6unY= 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:references; b=JYSiExeHN5AkSaNHrrIe8t9CqQazevI4tXnpocUYF24CaHH6GrbDY1E4Zdlm+w0Fy2b2cmWmPWyTnOov8NVSaN7B0l94qD9GSjykvgLQFV+3WEmTlRk/B1ZsJRcQiLYPMXEYcFt6WoRS2uvenXdrWd94a/7xHxhzECoQHfWiqIM= Received: by 10.65.224.11 with SMTP id b11mr896992qbr.1173365550230; Thu, 08 Mar 2007 06:52:30 -0800 (PST) Received: by 10.49.75.11 with HTTP; Thu, 8 Mar 2007 06:52:29 -0800 (PST) Message-ID: <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> Date: Thu, 8 Mar 2007 09:52:29 -0500 From: "Chad Wagner" To: "Ezequias Rodrigues da Rocha" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_169271_16189031.1173365549996" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/81 X-Sequence-Number: 27719 ------=_Part_169271_16189031.1173365549996 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/8/07, Ezequias Rodrigues da Rocha wrote: > > I really don't have the pgcrypto. It could be a nice alternative. Could > you tell me the steps to install it ? This should help you out: http://www.postgresql.org/docs/8.2/static/external-extensions.html http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/README?rev=1.91;content-type=text%2Fplain I am very concerned about security in my application becouse we are going to > moviment a large ammount of information and money. As much i take care of it > as good. SHA1 and MD5 are hashing algorithms, they are typically used for passwords and in conjunction with public key encryption or over-the-wire encryption to sign the message. If you are really concerned about security, you may want to hire an experienced person in the security engineering field. Especially if you are talking about financial information. I know some problem of MD5 and know it is very good too. If someone could > tell me where MD5 is used I could be more relaxed. The impression I get is that SHA-256, SHA-384, or SHA-512 are the preferred hashing algorithms, but I really don't keep up on it. Many many password systems use MD5, I think it is reasonably safe. ------=_Part_169271_16189031.1173365549996 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On 3/8/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
I really don't have the pgcrypto. It could be a nice alternative. Could you tell me the steps to install it ?

I am very concerned about security in my application becouse we are going to moviment a large ammount of information and money. As much i take care of it as good.

SHA1 and MD5 are hashing algorithms, they are typically used for passwords and in conjunction with public key encryption or over-the-wire encryption to sign the message.  If you are really concerned about security, you may want to hire an experienced person in the security engineering field.  Especially if you are talking about financial information.
 

I know some problem of MD5 and know it is very good too. If someone could tell me where MD5 is used I could be more relaxed.


The impression I get is that SHA-256, SHA-384, or SHA-512 are the preferred hashing algorithms, but I really don't keep up on it.  Many many password systems use MD5, I think it is reasonably safe.
------=_Part_169271_16189031.1173365549996-- From ezequias.rocha@gmail.com Fri Mar 9 12:35:06 2007 Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 12F529FB2CF for ; Fri, 9 Mar 2007 08:35:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 48975-01-5 for ; Fri, 9 Mar 2007 08:34:56 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by postgresql.org (Postfix) with ESMTP id EC9D19FB2CD for ; Fri, 9 Mar 2007 08:35:00 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1243225ugf for ; Fri, 09 Mar 2007 04:34:59 -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:references; b=J2cKrj1L2wL4eJ5fJS4ny351ZP84oii2pFpSfFiF0tidNHTgmn8SynzfmWEXUBAfXBbbvG0xS76EPHjiI8GDg9gfCg2sBVRwM+StWritW5kimTAAuUZpegAncWmFzkvyOyjgpGVNy7HuPe1AWw4f5EWjkXmHgPFf79+IWjvKT+I= 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:references; b=nQGDfcfxEMN2mQPfLrATWt4zt700IIIH0QVvfRDR9o0mDK5mZVz3dAyDraFLr4nGVKIjiMhwVhQ7Kr43JNM4ac7PQJ61LOR+yKwwlvf7jGsi/ZP9LyJTZJGRCGYBpqdwUCi8A5lQPaMwOhjx97GjaipHnKFwrf274df6GYM03Uc= Received: by 10.67.21.11 with SMTP id y11mr9482059ugi.1173443699245; Fri, 09 Mar 2007 04:34:59 -0800 (PST) Received: by 10.67.94.13 with HTTP; Fri, 9 Mar 2007 04:34:59 -0800 (PST) Message-ID: <55c095e90703090434ob874f2q4ff3cfd0d91c88f3@mail.gmail.com> Date: Fri, 9 Mar 2007 09:34:59 -0300 From: "Ezequias Rodrigues da Rocha" To: "Chad Wagner" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_756_5025626.1173443699183" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/99 X-Sequence-Number: 27737 ------=_Part_756_5025626.1173443699183 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you so much for your information. I installed the pgCrypto. Now I have more than 40 functions (i believe all are from pgcrypto) but when I try to run your query: select encode(digest('blahblah', 'sha256'), 'hex'); I got the error: ERROR: Cannot use "sha256": No such hash algorithm SQL state: 22023 Any suggestion Ezequias 2007/3/8, Chad Wagner : > > On 3/8/07, Ezequias Rodrigues da Rocha wrote: > > > > I really don't have the pgcrypto. It could be a nice alternative. Could > > you tell me the steps to install it ? > > > This should help you out: > > http://www.postgresql.org/docs/8.2/static/external-extensions.html > http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/README?rev=1.91;content-type=text%2Fplain > > > > > I am very concerned about security in my application becouse we are going > > to moviment a large ammount of information and money. As much i take care of > > it as good. > > > SHA1 and MD5 are hashing algorithms, they are typically used for passwords > and in conjunction with public key encryption or over-the-wire encryption to > sign the message. If you are really concerned about security, you may want > to hire an experienced person in the security engineering field. Especially > if you are talking about financial information. > > > I know some problem of MD5 and know it is very good too. If someone could > > tell me where MD5 is used I could be more relaxed. > > > > The impression I get is that SHA-256, SHA-384, or SHA-512 are the > preferred hashing algorithms, but I really don't keep up on it. Many many > password systems use MD5, I think it is reasonably safe. > -- Ezequias Rodrigues da Rocha http://ezequiasrocha.blogspot.com/ use Mozilla Firefox:http://br.mozdev.org/firefox/ ------=_Part_756_5025626.1173443699183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you so much for your information. I installed the pgCrypto. Now I have more than 40 functions (i believe all are from pgcrypto) but when I try to run your query:

select encode(digest('blahblah', 'sha256'), 'hex');

I got the error:

ERROR: Cannot use "sha256": No such hash algorithm
SQL state: 22023


Any suggestion

Ezequias


2007/3/8, Chad Wagner < chad.wagner@gmail.com>:
On 3/8/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
I really don't have the pgcrypto. It could be a nice alternative. Could you tell me the steps to install it ?

I am very concerned about security in my application becouse we are going to moviment a large ammount of information and money. As much i take care of it as good.

SHA1 and MD5 are hashing algorithms, they are typically used for passwords and in conjunction with public key encryption or over-the-wire encryption to sign the message.  If you are really concerned about security, you may want to hire an experienced person in the security engineering field.  Especially if you are talking about financial information.
 

I know some problem of MD5 and know it is very good too. If someone could tell me where MD5 is used I could be more relaxed.


The impression I get is that SHA-256, SHA-384, or SHA-512 are the preferred hashing algorithms, but I really don't keep up on it.  Many many password systems use MD5, I think it is reasonably safe.



--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com/
use Mozilla Firefox: http://br.mozdev.org/firefox/ ------=_Part_756_5025626.1173443699183-- From chad.wagner@gmail.com Fri Mar 9 13:14:25 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2BBB19FB6CA for ; Fri, 9 Mar 2007 09:14:25 -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 76867-08 for ; Fri, 9 Mar 2007 09:14:18 -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.225]) by postgresql.org (Postfix) with ESMTP id 4AD099FB974 for ; Fri, 9 Mar 2007 09:14:18 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id i28so859421wxd for ; Fri, 09 Mar 2007 05:14:17 -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:references; b=KFm3UfYBKpyinHgQ8g1PPDj+q5T2HGeAGyJADgIsezz51dVjlE0PImxIC+/RAGGwhCJp4u5GpDyTcT9bPtpuXf9uX+NWWnDJKEqZ/F6zhZq9hQBhbMGAZoTJfcXlDHXcOyrzVUS1kj7ab9Rv6ZZ84YFOj5J4jU14+8DyNlGKPN4= 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:references; b=SEwFGRXfOOxWU3g7kKWTZ4X5NXHFnx646y4zX1r7Qy8hRej4z2Caz19EkxqG4me+098ZYMmGRJlwktwRdUZwlfBuwxCaNM7vDQNE5myDbruT2QB/QLoUv9zQivx3CQ4VW+cmsbHN+y6RKgoc4R3Ya/DjBd9V6xBh0WmfNgzAo/4= Received: by 10.70.39.11 with SMTP id m11mr2909006wxm.1173446057074; Fri, 09 Mar 2007 05:14:17 -0800 (PST) Received: by 10.49.75.11 with HTTP; Fri, 9 Mar 2007 05:14:16 -0800 (PST) Message-ID: <81961ff50703090514k562d1218rd44df84a13d69507@mail.gmail.com> Date: Fri, 9 Mar 2007 08:14:16 -0500 From: "Chad Wagner" To: "Ezequias Rodrigues da Rocha" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <55c095e90703090434ob874f2q4ff3cfd0d91c88f3@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1405_4647960.1173446056866" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> <55c095e90703090434ob874f2q4ff3cfd0d91c88f3@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/101 X-Sequence-Number: 27739 ------=_Part_1405_4647960.1173446056866 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/9/07, Ezequias Rodrigues da Rocha wrote: > > Thank you so much for your information. I installed the pgCrypto. Now I > have more than 40 functions (i believe all are from pgcrypto) but when I try > to run your query: > > select encode(digest('blahblah', 'sha256'), 'hex'); > > I got the error: > > ERROR: Cannot use "sha256": No such hash algorithm > SQL state: 22023 > It may not be available in your version of the database/pgcrypto module, my test was performed on 8.2.3. ------=_Part_1405_4647960.1173446056866 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/9/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
Thank you so much for your information. I installed the pgCrypto. Now I have more than 40 functions (i believe all are from pgcrypto) but when I try to run your query:

select encode(digest('blahblah', 'sha256'), 'hex');

I got the error:

ERROR: Cannot use "sha256": No such hash algorithm
SQL state: 22023


It may not be available in your version of the database/pgcrypto module, my test was performed on 8.2.3.
------=_Part_1405_4647960.1173446056866-- From ezequias.rocha@gmail.com Fri Mar 9 17:26:42 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 402589FBC47 for ; Fri, 9 Mar 2007 13:26: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 82373-02 for ; Fri, 9 Mar 2007 13:26:29 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by postgresql.org (Postfix) with ESMTP id 40D0B9FB782 for ; Fri, 9 Mar 2007 13:26:27 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1334555ugf for ; Fri, 09 Mar 2007 09:26:26 -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:references; b=lL+zsFow6yw9WFgBtf48Y/xdCOQ3nqRBhyzCq8EdPvn/RINuVx7lS0YEVFLBimRZouviGFRbfBNQ6WYWUhrQlFnxr7KJviv5bu6+o2nXN+d4OvGQvNOdCpl0jP8rD0xCjHTDfc4IO6DjU3rnSY6GX49jZ2x8CL/RJWP4v3BADwY= 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:references; b=GPFS1H76aC7a385wiG4YdXs1qAPq5InsHKeSr52lgWbrIGNAdmqCqw0KuN72WVl/byakvzaHJl2r6oYZTI88/8kk9isYO84ZS132eszUeTQxWecDqVsr0x+0/Kqe8F2rmLBtYrOs7bfgSuUdR2/k8KYd8+zF/VpNw6s8eUtes6k= Received: by 10.67.117.2 with SMTP id u2mr9982942ugm.1173461186141; Fri, 09 Mar 2007 09:26:26 -0800 (PST) Received: by 10.67.94.13 with HTTP; Fri, 9 Mar 2007 09:26:26 -0800 (PST) Message-ID: <55c095e90703090926h66697deem7c0bfeccdb55474c@mail.gmail.com> Date: Fri, 9 Mar 2007 14:26:26 -0300 From: "Ezequias Rodrigues da Rocha" To: "Chad Wagner" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <81961ff50703090514k562d1218rd44df84a13d69507@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_166_21494527.1173461186048" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> <55c095e90703090434ob874f2q4ff3cfd0d91c88f3@mail.gmail.com> <81961ff50703090514k562d1218rd44df84a13d69507@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/119 X-Sequence-Number: 27757 ------=_Part_166_21494527.1173461186048 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline You are correct. My pg (8.1.3) Now what I do to remove it ? Just delete the functions ? Ezequias 2007/3/9, Chad Wagner : > > On 3/9/07, Ezequias Rodrigues da Rocha wrote: > > > > Thank you so much for your information. I installed the pgCrypto. Now I > > have more than 40 functions (i believe all are from pgcrypto) but when I try > > to run your query: > > > > select encode(digest('blahblah', 'sha256'), 'hex'); > > > > I got the error: > > > > ERROR: Cannot use "sha256": No such hash algorithm > > SQL state: 22023 > > > > > It may not be available in your version of the database/pgcrypto module, > my test was performed on 8.2.3. > -- Ezequias Rodrigues da Rocha http://ezequiasrocha.blogspot.com/ use Mozilla Firefox:http://br.mozdev.org/firefox/ ------=_Part_166_21494527.1173461186048 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You are correct. My pg (8.1.3)

Now what I do to remove it ?

Just delete the functions ?

Ezequias

2007/3/9, Chad Wagner <chad.wagner@gmail.com >:
On 3/9/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
Thank you so much for your information. I installed the pgCrypto. Now I have more than 40 functions (i believe all are from pgcrypto) but when I try to run your query:

select encode(digest('blahblah', 'sha256'), 'hex');

I got the error:

ERROR: Cannot use "sha256": No such hash algorithm
SQL state: 22023


It may not be available in your version of the database/pgcrypto module, my test was performed on 8.2.3 .



--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com/
use Mozilla Firefox: http://br.mozdev.org/firefox/ ------=_Part_166_21494527.1173461186048-- From chad.wagner@gmail.com Fri Mar 9 17:35:31 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 942B29FB3BA for ; Fri, 9 Mar 2007 13:35:31 -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 85259-03 for ; Fri, 9 Mar 2007 13:35:27 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by postgresql.org (Postfix) with ESMTP id 0035B9FB3B3 for ; Fri, 9 Mar 2007 13:35:27 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id 50so1245431wri for ; Fri, 09 Mar 2007 09:35:27 -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:references; b=JzdjoeZf+ur820kA11v/Tn3icXIYzc3XotQxrVs3QiUojCDptnORI0WVvIGSab0dUr3/oeHRANIqAhZjRpilciwjHwI8hGojEeuhux9wGJg0IZfoF7OYL1334JEHMNyigwKdQOKdqEEpzk8k0hcpIKEy/x4j9ySGFJBKdfeKw6Q= 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:references; b=VP7y+PhV2TruF86vtCqHstadrQNDIjPfGrL147dNsHrsEZOoK9KsF9JhqIG5daxGTTcz5YDeIHRR2koL3DpBUc9ohZ9pOoQKLUrEs73EqALxpWLrc7ZCYuJws2KKGwJxmxWDrkiwerOd4Cpnx4g5btfiO8MwyY+4y9haEvq+qls= Received: by 10.65.176.7 with SMTP id d7mr3168248qbp.1173461727445; Fri, 09 Mar 2007 09:35:27 -0800 (PST) Received: by 10.49.75.11 with HTTP; Fri, 9 Mar 2007 09:35:27 -0800 (PST) Message-ID: <81961ff50703090935x1b2083e4rf5a9fc8cb9952da4@mail.gmail.com> Date: Fri, 9 Mar 2007 12:35:27 -0500 From: "Chad Wagner" To: "Ezequias Rodrigues da Rocha" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <55c095e90703090926h66697deem7c0bfeccdb55474c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_313_20320898.1173461727353" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> <55c095e90703090434ob874f2q4ff3cfd0d91c88f3@mail.gmail.com> <81961ff50703090514k562d1218rd44df84a13d69507@mail.gmail.com> <55c095e90703090926h66697deem7c0bfeccdb55474c@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/121 X-Sequence-Number: 27759 ------=_Part_313_20320898.1173461727353 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/9/07, Ezequias Rodrigues da Rocha wrote: > > You are correct. My pg (8.1.3) > > Now what I do to remove it ? > > Just delete the functions ? > There is usually an uninstall_pgcrypto.sql script you can run against the database. But 8.1 probably supports at least sha1, or you can consider upgrading to 8.2. ------=_Part_313_20320898.1173461727353 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/9/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
You are correct. My pg (8.1.3)

Now what I do to remove it ?

Just delete the functions ?

There is usually an uninstall_pgcrypto.sql script you can run against the database.  But 8.1 probably supports at least sha1, or you can consider upgrading to 8.2.
------=_Part_313_20320898.1173461727353-- From ezequias.rocha@gmail.com Fri Mar 9 17:49:12 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 561049FBDA2 for ; Fri, 9 Mar 2007 13:49:12 -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 87180-09 for ; Fri, 9 Mar 2007 13:49:04 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id 881EE9FBDDC for ; Fri, 9 Mar 2007 13:49:04 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1341391ugf for ; Fri, 09 Mar 2007 09:48:54 -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:references; b=gr/DdSnjHYIrRMza+IN2CqRSns923yejtYPPpQm70/NQ88BJDFpMwltwpAfOsbSHKtx06XwBeoUSUGZ3No4hzoW9lo2U8igOdIO/F3r1vPh3WJaM5LLgEGzZmZFKhODD9OnSmBHIMG8O5oIO8GLnBRsf274jTdanZh9ob1J8tog= 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:references; b=Qc487NZ85VZnIAkmiIA1M4hJYrcH+xzZe3aFTcrYfAYe4sn9fbNcgCiz7YPq6pUMymnH32yHWktMOrfwyMDtL+U2wyhUk5ZO2UF1O4Dgvrg0cZw5nbfPtT5aNnzvk5a99uGKUVx/Ccdd9cPm+veJihN3YICiN6NA7RUUlPJpRs4= Received: by 10.66.243.4 with SMTP id q4mr10091437ugh.1173462534382; Fri, 09 Mar 2007 09:48:54 -0800 (PST) Received: by 10.67.94.13 with HTTP; Fri, 9 Mar 2007 09:48:54 -0800 (PST) Message-ID: <55c095e90703090948k60ba312fxed7b98a89c71743f@mail.gmail.com> Date: Fri, 9 Mar 2007 14:48:54 -0300 From: "Ezequias Rodrigues da Rocha" To: "Chad Wagner" Subject: Re: SHA-1 vs MD5 Cc: PostgreSQL In-Reply-To: <81961ff50703090935x1b2083e4rf5a9fc8cb9952da4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_486_21446868.1173462534325" References: <55c095e90703071204t5aebb921s9d5f1067d3c2f035@mail.gmail.com> <81961ff50703071344i28d9ea6cr4902fed404b38602@mail.gmail.com> <55c095e90703080339y67152f49ud82741fd21ac6370@mail.gmail.com> <81961ff50703080652o41274e2djc5b789fb4da9bd27@mail.gmail.com> <55c095e90703090434ob874f2q4ff3cfd0d91c88f3@mail.gmail.com> <81961ff50703090514k562d1218rd44df84a13d69507@mail.gmail.com> <55c095e90703090926h66697deem7c0bfeccdb55474c@mail.gmail.com> <81961ff50703090935x1b2083e4rf5a9fc8cb9952da4@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/122 X-Sequence-Number: 27760 ------=_Part_486_21446868.1173462534325 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline You are correct SH1 is supported. So I get the output size from 128 to 160 ok ? I saw at wikipedia. What does "With flaws" colisions means ? Does it means some ? in MD5 the put only "yes" Regards Ezequias 2007/3/9, Chad Wagner : > > On 3/9/07, Ezequias Rodrigues da Rocha wrote: > > > > You are correct. My pg (8.1.3) > > > > Now what I do to remove it ? > > > > Just delete the functions ? > > > > There is usually an uninstall_pgcrypto.sql script you can run against the > database. But 8.1 probably supports at least sha1, or you can consider > upgrading to 8.2. > -- Ezequias Rodrigues da Rocha http://ezequiasrocha.blogspot.com/ use Mozilla Firefox:http://br.mozdev.org/firefox/ ------=_Part_486_21446868.1173462534325 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You are correct SH1 is supported. So I get the output size from 128 to 160 ok ?

I saw at wikipedia.

What does "With flaws" colisions means ? Does it means some ? in MD5 the put only "yes"

Regards
Ezequias

2007/3/9, Chad Wagner <chad.wagner@gmail.com>:
On 3/9/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com > wrote:
You are correct. My pg (8.1.3)

Now what I do to remove it ?

Just delete the functions ?

There is usually an uninstall_pgcrypto.sql script you can run against the database.  But 8.1 probably supports at least sha1, or you can consider upgrading to 8.2.



--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com/
use Mozilla Firefox: http://br.mozdev.org/firefox/ ------=_Part_486_21446868.1173462534325--