Re: i could not found exact steps for using pgp_sym_encrypt() and pgp_sym_decrypt()

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: tushar nehete <tpnehete(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: i could not found exact steps for using pgp_sym_encrypt() and pgp_sym_decrypt()
Date: 2011-10-10 13:32:09
Message-ID: 4E92F3D9.6040007@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/10/2011 04:37 PM, tushar nehete wrote:
> Hi,
> i could not found exact steps for using pgp_sym_encrypt() and
> pgp_sym_decrypt().
>
> I want to encrypt the data of column and then in a function decrypt
> that column using pgp_sym_encrypt() and pgp_sym_decrypt() functions.
> Its working fine with postgres 8.4 eg: select
> pgp_sym_encrypt('tushar','22');
>
> Version of postgres is 9.0

If it was working for you in 8.4 and isn't working in 9.0, what changed?

Are you using exactly the same arguments to the function in both tests?

What is the error message?

Have you installed the pgcrypto contrib module in your 9.0 database(s)?

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adarsh Sharma 2011-10-10 13:32:26 Re: Select latest Timestamp values with group by
Previous Message Filip Rembiałkowski 2011-10-10 13:28:21 Re: could not create file "base/16384/11500": File exists