Пример #1
0
 private static void DecryptNVerify()
 {
     using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt())
     {
         using (Stream input = File.OpenRead("SampleData.PGP"))
         {
             using (Stream output = File.OpenWrite("SampleData.OUT"))
             {
                 pgp.DecryptAndVerify(input, output, "Sample_Pub.asc", "Sample_Pri.asc", "Test123");
             }
         }
         Console.WriteLine("PGP Decryption done.");
     }
 }