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

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

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

            Test();
        }
Beispiel #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);
        }