Encrypt with BouncyCastle and decrypt with pg_pub_decrypt

From: "Kang, Kamal" <k_kang(at)conversantmedia(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Encrypt with BouncyCastle and decrypt with pg_pub_decrypt
Date: 2017-05-18 23:57:04
Message-ID: DC7C4D9D-4BCD-4082-96E0-82889FE8B342@conversantmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

Thanks

Kamal

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karl O. Pinc 2017-05-19 06:52:00 Re: Serializable isolation -- are predicate locks still held across all databases?
Previous Message Scott Marlowe 2017-05-18 21:41:50 Re: Call for users to talk about table partitioning