Encrypt with Bouncy Castle and decrypt using Postgres pgcrypto apis
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?