Re: Pg 9.1.3 pg_crypto question

From: Aaron Burnett <aburnett(at)bzzagent(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Pg 9.1.3 pg_crypto question
Date: 2012-04-10 21:03:43
Message-ID: CBA9FC3B.14E2D%aburnett@bzzagent.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Thanks, Tom. That was exactly it.

Best Regards

On 4/10/12 2:50 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

>Aaron Burnett <aburnett(at)bzzagent(dot)com> writes:
>> 9.1.3 is just not decrypting nor throwing errors.
>
>> 9.1.3# select decrypt_iv(decode('rkMRWpnnbjaFoHyLmCD/bg==', 'base64'),
>> decode('bcRJvbqeWMPDXMtIP8pPOQ==', 'base64'), '0000000000000000',
>> 'aes-cbc');
>> decrypt_iv
>> --------------------------
>> \x48656c6c6f205468657265
>> (1 row)
>
>I think this is the same result, it's just being shown in hex.
>See the bytea_output configuration parameter.
>
> regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2012-04-10 21:10:18 Re: trigger when clause
Previous Message Jeff Davis 2012-04-10 20:59:27 Re: efficient trigger function selection?