Re: Fast Search on Encrypted Feild

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Fast Search on Encrypted Feild
Дата
Msg-id b42b73150911141339p4f2c0830o77bfe40f12adf0c3@mail.gmail.com
обсуждение исходный текст
Ответ на Fast Search on Encrypted Feild  ("Naoko Reeves" <naoko@lawlogix.com>)
Ответы Re: Fast Search on Encrypted Feild
Список pgsql-general
On Sat, Nov 14, 2009 at 4:27 PM, Naoko Reeves <naoko@lawlogix.com> wrote:
> I have a encrypted column use encrypt function.
>
> Querying against this column is almost not acceptable – returning 12 rows
> took 25,908 ms.
>
> The query was simply Select decrypt(phn_phone_enc) FROM phn WHERE
> decrypt(phn_phone_enc,’xxx’,’xxx’) LIKE ‘123%’
>
> So I built index like: CREATE INDEX idx_phn_phone_dec ON phn
> (decrypt(phn_phone_enc, ‘xxx’, ‘xxx’))
>
> This returns 12 rows in 68 ms.
>
> Would this be the solution for the fast encrypted field search or does this
> raise the security issue?

You are storing the unencrypted phone number in the index...can't do
that.   As I see it, any solution that needs to support 'LIKE' (or
anything other than equality case) is going to be problematic because
it has to expose details of the encrypted data to work.  It may be
possible to rig something...how high are your security requirements?

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: "Naoko Reeves"
Дата:
Сообщение: Fast Search on Encrypted Feild
Следующее
От: "Naoko Reeves"
Дата:
Сообщение: Re: Fast Search on Encrypted Feild