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

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