Re: Encrypted column

From: Steve Atkins <steve(at)blighty(dot)com>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Encrypted column
Date: 2007-06-05 15:39:32
Message-ID: 71E4FE2F-6FC9-4EDB-89FF-69046C405363@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql


On Jun 5, 2007, at 7:28 AM, Ron Johnson wrote:

> 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.

Public key encryption can help here. Encrypt with the public key when
it goes into the database, keep the private key on a separate, well
protected system that's just used for recurring CC billing.

Cheers,
Steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2007-06-05 16:10:01 Re: $libdir
Previous Message Martijn van Oosterhout 2007-06-05 15:29:54 Re: lo or bytea streaming engine??

Browse pgsql-sql by date

  From Date Subject
Next Message Tino Wildenhain 2007-06-05 16:16:09 Re: Encrypted column
Previous Message Andrew Sullivan 2007-06-05 15:27:26 Re: Encrypted column