|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PGPArticle.Contracts;
using PGPArticle.Services;
namespace PGPArticle.ConsoleApp
{
class Program
{
static void Main(string[] args)
{
IEncryptionService encryptionService = new EncryptionService(@"C:\Program Files\GNU\GnuPG\pub\gpg2.exe");
// Change the parameters to your private key's keyuserid and input/output files.
//var encryptedFile = encryptionService.EncryptFile("duke@lacrosse.com", @"C:\Users\dave\Desktop\LicAndPassport.PDF", @"F:\LicAndPassport.PDF.pgp");
var encryptedFile = encryptionService.DecryptFile(@"F:\LicAndPassport.PDF.pgp", @"F:\LicAndPassport.pdf");
Console.WriteLine(encryptedFile.Name);
Console.ReadLine();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
A mid-level developer writing .NET code to provide business solutions to a wide range of customer requirements.