示例#1
0
 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.");
     }
 }
示例#2
0
 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.");
     }
 }