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")); }
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(); }
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); }