public void EncryptFileNSign() { using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt()) { pgp.EncryptFileAndSign("SampleData.txt", "SampleData.PGP", "Sample_Pub.asc", "Sample_Pri.asc", "Test123", true, false); Console.WriteLine("PGP Encryption done."); } }
private static void EncryptFileNSign() { using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt()) { //pgp.CompressionAlgorithm = ChoCompressionAlgorithm.Zip; pgp.EncryptFileAndSign("SampleData.txt", "SampleData.PGP", "Sample_Pub.asc", "Sample_Pri.asc", "Test123", true, false); Console.WriteLine("PGP Encryption done."); } }