Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 385B19FB67C for ; Tue, 5 Jun 2007 11:31:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 82666-10 for ; Tue, 5 Jun 2007 11:31:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from eastrmmtao105.cox.net (eastrmmtao105.cox.net [68.230.240.47]) by postgresql.org (Postfix) with ESMTP id 87C479FA618 for ; Tue, 5 Jun 2007 11:31:29 -0300 (ADT) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070605143128.BGFQ8837.eastrmmtao105.cox.net@eastrmimpo01.cox.net> for ; Tue, 5 Jun 2007 10:31:28 -0400 Received: from haggis.homelan ([68.105.48.3]) by eastrmimpo01.cox.net with bizsmtp id 7qXT1X00Q047iJk0000000; Tue, 05 Jun 2007 10:31:27 -0400 Received: by haggis.homelan (Postfix, from userid 1002) id 0EACF240A80; Tue, 5 Jun 2007 09:31:28 -0500 (CDT) Received: from [192.168.1.10] (haggis.homelan [192.168.1.10]) by haggis.homelan (Postfix) with ESMTP id 27E17240A80 for ; Tue, 5 Jun 2007 09:28:01 -0500 (CDT) Message-ID: <466572F0.3070900@cox.net> Date: Tue, 05 Jun 2007 09:28:00 -0500 From: Ron Johnson User-Agent: Mozilla-Thunderbird 2.0.0.0 (X11/20070601) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: Encrypted column References: <46645B01.6070605@terra.com.br> <4664983F.4010700@burntmail.com> <46656398.1090203@cox.net> <20070605135951.GB8140@alvh.no-ip.org> In-Reply-To: <20070605135951.GB8140@alvh.no-ip.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.457 tagged_above=0 required=5 tests=AWL=0.321, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/399 X-Sequence-Number: 115222 On 06/05/07 08:59, Alvaro Herrera wrote: > Ron Johnson wrote: >> On 06/04/07 17:54, Guy Rouillier wrote: > >>> Many people consider two-way encryption to be insecure; two-way >>> encryption means you can decrypt a value if you know the key, and it is >>> insecure because you usually have to put the key into the source code. >>> That means at least one person in your company, the programmer >>> maintaining the source code, can learn all of your users' passwords. >> Two-way encryption is needed for companies that store customer >> credit cards. > > I thought that the advice for companies storing customer CCs was: don't. Sometimes you "must". An example from my industry: transponder "toll tags" and toll roads. The customer pre-pays a certain amount based on expected usage, and every time he drives thru a plaza, his balance decreases. Once it drops to a certain threshold, more money needs to be added to the account. If he is a CASH/CHEK customer, a light at the lane flashes yellow and (depending on the Agency) a message pops up saying, "Balance low", so he drives over to the customer service center, stands in line and pays his cash. If he is a CC customer, the system (which I am DBA of) bills his card directly, saving the customer much time and effort. -- Ron Johnson, Jr. Jefferson LA USA Give a man a fish, and he eats for a day. Hit him with a fish, and he goes away for good!