From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | "Kang, Kamal" <k_kang(at)conversantmedia(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Encrypt with BouncyCastle and decrypt with pg_pub_decrypt |
Date: | 2017-05-19 15:22:52 |
Message-ID: | CAMkU=1xBZdr5EJ8Bt9RVaG6go2-7UL2v=N2=DrhODJ-84KLx9A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, May 18, 2017 at 4:57 PM, Kang, Kamal <k_kang(at)conversantmedia(dot)com>
wrote:
> Hi all,
>
>
>
> I am trying to encrypt a string using Bouncy Castle PGP Java apis, Base64
> encode the encrypted string and then decrypt using pg_pub_decrypt but it is
> failing with error “Wrong Key”. Just wanted to know if this is doable or
> pg_pub_decrypt only works with encrypted strings from pg_pub_encrypt?
>
pg_pub_decrypt is compatible with gpg, so if Bouncy Castle is also
compatible with gpg I don't see why it wouldn't also work. Without more
information, it is hard to provide more advice. encrypt a dummy payload
with a dummy password and show us what you get and what you do with it.
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Ed Behn | 2017-05-19 15:58:25 | Partitioned Data and Locking |
Previous Message | Kevin Grittner | 2017-05-19 14:31:02 | Re: Serializable isolation -- are predicate locks still held across all databases? |