Encrypt with Bouncy Castle and decrypt using Postgres pgcrypto apis

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Encrypt with Bouncy Castle and decrypt using Postgres pgcrypto apis

Kamal Kang
This post has NOT been accepted by the mailing list yet.
I am trying to encrypt a string using Bouncy Castle PGP Java apis(1.57, PBEFileProcessor), Base64 encode the encrypted string and then decrypt using Postgres (9.4.4) pg_pub_decrypt but it is failing with error “Wrong Key”. Just wanted to know if anybody has experience doing something similar. Are they compatible?