Пример #1
0
        private static void Main()
        {
            // Put your tests here.
            Caesar simple = new Caesar(3);

            Console.Write(Caesar.GuessKey("My exam is so interesting! Thanks ACDC <3"));
        }
Пример #2
0
        private static void Main()
        {
            // Put your tests here.

            Console.WriteLine(Caesar.GuessKey("Pb hadp lv vr lqwhuhvwlqj! Wkdqnv DFGF <3"));
            Test();
        }
Пример #3
0
        private static void Main()
        {
            // Put your tests here.
            Caesar simple = new Caesar(3);

            simple.Encrypt("My exam is so interesting! Thanks ACDC <3");

            Test();
        }
Пример #4
0
        public static string GuessKeyWithLength(string cypherText, int keyLength)
        {
            string key = "";

            for (int i = 0; i < keyLength; i++)
            {
                string tempstring = Tools.Extract(Tools.FilterLetters(cypherText), i, keyLength);
                key += (Caesar.GuessKey(tempstring)).ToString();
            }

            return(key);
        }