Exemple #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"));
        }
Exemple #2
0
        private static void Main()
        {
            // Put your tests here.

            Console.WriteLine(Caesar.GuessKey("Pb hadp lv vr lqwhuhvwlqj! Wkdqnv DFGF <3"));
            Test();
        }
Exemple #3
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);
        }