Пример #1
0
 public void CreateLink(El_Gammal El_Gammal)
 {
     GeneratePublicKey();
     int SetG;
     int SetP;
     double SetY;
     GetPublickey(out SetG, out SetP, out SetY);
     El_Gammal.SetPublicKey(SetG, SetP, SetY);
 }
Пример #2
0
 public static void El_GammalTest()
 {
     El_Gammal Alice = new El_Gammal();
     El_Gammal Bob = new El_Gammal();
     Alice.CreateLink(Bob);
     Console.WriteLine("Enter text ");
     string text = Console.ReadLine();
     string bobtext = Bob.Encryption(text);
     Console.WriteLine(bobtext);
     string alicetext = Alice.Decryption(bobtext);
     Console.WriteLine(alicetext);
     Console.ReadKey();
 }