Beispiel #1
0
 static void Main(string[] args)
 {
     RSA rsa = new RSA();
     int input = 98;
     uint ASCII = Convert.ToUInt32((uint)input);
     Console.WriteLine("Przed: " + ASCII);
     uint encrypted = rsa.encrypt(ASCII);
     Console.WriteLine("Zakodowane: " + encrypted);
     ASCII = rsa.decrpyt(encrypted);
     Console.WriteLine("Odkodowane: " + ASCII);
     Console.ReadKey();
 }