Exception in PGP Decryption/Java
While trying to Decrypt a file i got below exception.
java.lang.IllegalArgumentException: secret key for message not found.
at com.tecnotree.PGPDecrypt1._decrypt(PGPDecrypt1.jav a:69)
at com.tecnotree.PGPDecrypt1.decrypt(PGPDecrypt1.java :34)
at com.tecnotree.PGPDecrypt1.main(PGPDecrypt1.java:12 5)
I had given a private key(secring.skr) and passphrase key(Password for key) in my program. But still i am getting above exception.
please help me in resolving this. I have been trying for past 3 days but could not get to its bottom.