I have the public key which is shared by client for PGP file encrpytion. I am using Java 1.7 and this question is very similar to this one.
Unfortunately none of those solutions are working for me or outdated.
Can someone please share the working implementation or guide if they have any? Code with comments is preferred.
What i have done so far:
Tried implementating using BouncyCastle and OpenPGP API. Didn't succeed.