From: Bruno Wolff III <bruno@wolff.to>
To: Greg Stark <gsstark@mit.edu>
Cc: Daniel Struck <struck.d@retrovirology.lu>
Cc: Mitch Pirtle <mitchy@spacemonkeylabs.com>
Cc: pgsql-php@postgresql.org
Subject: Re: [ADMIN] Secure DB Systems - How to
Date: Thu, 29 Jul 2004 13:00:10 -0500
Message-ID: <20040729180010.GA23523@wolff.to> (raw)
In-Reply-To: <87brhzsx9x.fsf@stark.xeocode.com>
References: <ccjra4$pgl$1@sea.gmane.org>
<20040709152722.GA20935@wolff.to>
<20040713113557.31e9d6dc@localhost>
<20040713123817.GB3710@wolff.to>
<20040713151838.0004cb8e@localhost>
<40F3EC4A.1060101@spacemonkeylabs.com>
<20040727134133.676ab9cf@localhost>
<20040727194905.GA20499@wolff.to>
<87brhzsx9x.fsf@stark.xeocode.com>
On Wed, Jul 28, 2004 at 16:16:10 -0400,
Greg Stark <gsstark@mit.edu> wrote:
>
> Bruno Wolff III <bruno@wolff.to> writes:
>
> > That depends on the kind of queries. Searching for exact matches should work
> > fine. Some other things can be done in special cases.
>
> If searching for exact matches works then you're using a naive encryption
> system. The problem is that it also means your database is vulnerable to
> dictionary attacks. Good encryption systems will include random padding to
> ensure that you can't attack it by merely guessing many possible plaintexts
> and verifying to see if any match.
IVs act to make the key appear longer. This is especially useful when humans
are picking passphrases that are used to generate the key. If you control
what the actual keys are, then you can make dictionary attacks impractical.
However, there still would be the problem that identical items in the
database would be identical. Which, depnding on your application, might
be a problem because of information leakage.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, gsstark@mit.edu, struck.d@retrovirology.lu, mitchy@spacemonkeylabs.com, pgsql-php@postgresql.org
Subject: Re: [ADMIN] Secure DB Systems - How to
In-Reply-To: <20040729180010.GA23523@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox