示例#1
0
文件: Cryptography.cs 项目: ioab/AU
 private static void Bob1TimePadBack(string cipher)
 {
     var whatDidSheSent = new OneTimePad(true, requireEqualKeyLength: false).Decrypt("My Secret Key", cipher);
     Console.WriteLine("Hehe, I got her vigener coded message secretly: \n {0}", whatDidSheSent);
 }
示例#2
0
文件: Cryptography.cs 项目: ioab/AU
 private static void BobOneTimePadded(string cipher)
 {
     // P an K are both 15 characters //
     var whatDidSheSent = new OneTimePad(true).Decrypt("Ya We Know that", cipher);
     Console.WriteLine("Hehe, I got her one time padded message secretly: \n {0}", whatDidSheSent);
 }