static void Main(string[] args) { string msg = "596F7572206C6970732061726520736D6F6F74686572207468616E20766173656C696E650D0A0000"; string key = "0E329232EA6D0D73"; string dmsg = "C0999FDDE378D7ED727DA00BCA5A84EE47F269A4D6438190D9D52F78F5358499828AC9B453E0E653"; // pé¢0ø5Õ6ôXp"÷ string msg2 = "8787878787878787"; string key2 = "0E329232EA6D0D73"; string dmsg2 = "0000000000000000"; string m = "c0999fdde378d7ed"; //h¡?O ?? ÅU //h¡?O??ÅU //h¡?O??ÅU string k = "0E329232EA6D0D73"; string o = "Your lips are smoother than vase"; string dm = ""; RunDES des = new RunDES(key, "68A187D49381C5D9F2B9CF74F82ABDE1"); //des.RunEncrypt(); des.RunDecrypt(); /*Console.WriteLine("-----------------------"); * for (int c = 0; c <= 255; c++) * { * Console.WriteLine((char)(c)); * } * * Console.WriteLine(); * Console.WriteLine("-------------------------");*/ Console.ReadKey(); }
/* program not complete * * * * */ static void Main(string[] args) { Console.WriteLine(" - - - - - BFdes started - - - - -\r\n"); Console.Write("enter cryb: "); string cryb = Console.ReadLine(); Console.Write(" enter msg: "); string msg = Console.ReadLine(); Console.WriteLine("\r\nenter number of keys to test"); Console.Write("from: "); ulong start = Convert.ToUInt64(Console.ReadLine()); Console.Write(" to: "); ulong end = Convert.ToUInt64(Console.ReadLine()); Stopwatch t = new Stopwatch(); t.Start(); for (; start <= end; start += 2) { string key = CreateKeyFromULong(start); Console.Write(key + " | " + msg + " | "); RunDES rd = new RunDES(); string output = rd.RunEncrypt(key, msg); Console.WriteLine(output); } t.Stop(); TimeSpan ts = t.Elapsed; Console.WriteLine("\r\n - - - - - TEST COMPLETE - - - - -"); PrintElapsedTime(ts); Console.ReadKey(); }