I am trying to decrypt multiple pgp files and I copied decryption code from here. when I execute my application it gives me an exception Exception decrypting secret key
, I looked into this already asked Question and added that method in my in PgpEncryptionKeys
class. but still getting the same exception.
Asked
Active
Viewed 552 times
0

Community
- 1
- 1

Umm E Habiba Siddiqui
- 594
- 7
- 35
-
That's very unfortunate. What's your question? – stuartd Apr 11 '16 at 19:48
-
my question is that how can I fix this exception – Umm E Habiba Siddiqui Apr 11 '16 at 20:03
-
1"don't forget to modify the constructor as such: public PgpEncryptionKeys(string publicKeyPath, string privateKeyPath, string passPhrase, bool toEncrypt)" – Mikes3ds Apr 11 '16 at 20:46
-
I tried but when I call this class what will I put in that field ? – Umm E Habiba Siddiqui Apr 11 '16 at 21:08
-
You didn't write what kind of an error you are getting, it's impossible to help you. I have a sample code which I recently created though, I can share with you if you like. – Pecheneg May 13 '16 at 15:20
-
I used didisoft, a third party control to decrypt files, it worked (y) – Umm E Habiba Siddiqui May 13 '16 at 20:13