Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello

I want to be able to encrypt and decrypt files through PGP in my application.

I dont want to be able to manage/create keys, just encrypt and decrypt. I tried to use the code in the SharpPrivacy article found here on this website. However i didnt know how to use it or even compile the code to begin with.

Does anyone have a suggestion for this problem? If anyone can point me in the right direction i would be immensely grateful.

thank you
Posted
Comments
Henry Minute 9-Nov-10 11:12am    
After I answered, I googled around a bit and found http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/d42b0708-a06b-417e-a834-754f0dcfde92 scroll down till you see the answer from rjolly. Hope this helps.
deadwood88 10-Nov-10 1:58am    
Thank you a lot, I will try it.
deadwood88 11-Nov-10 2:11am    
The answer worked. However I am only able to decrypt .asc files (ASCII armored files). PGP desktop(versions 9.0 and above)don't produce asc files anymore, they can only create PGP files. Is there any workaround to this problem?

1 solution

Why PGP?

The .NET Framework contains a multitude of encryption protocols in the System.Security namespace.

Anyway, why were you not able to compile the sample code? Did you get errors? If so what were they?
 
Share this answer
 
Comments
deadwood88 9-Nov-10 11:08am    
Well the encrypted files will be sent to our clients who in turn will decrypt them using their keys. Thats why we're using PGP.

As for the sample code... the entire code didnt compile. I added all the references given with the source code, however it didnt help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900