Link to home
Start Free TrialLog in
Avatar of Russ Suter
Russ Suter

asked on

C# Encrypt a File using PGP Encryption

I have a very old process that uses GnuPG. The command line looks like this:

gpg --trust-model always --batch -u [value1] --passphrase [value2] --sign --recipient [value3] -o D:/Temp/testout.gpg -e D:/Temp/testout.txt

Open in new window


How do I achieve the same encryption results in C#?

I've tried using System.Diagnostics.Process but it doesn't work in my service application. I could use a standard PGP library but I'm not sure how to translate the values into usable code. Any help?
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial