public string SolveChallenge()
        {
            var decipheredTexts = new List <DecipherText>();

            foreach (var cipher in _ciphers)
            {
                var cipherText = new CipherText(cipher, CipherTextFormat.HEXADECIMAL);
                decipheredTexts.Add(cipherText.Crack(_cracker, KEYLENGTH));
            }

            decipheredTexts.Sort();

            return(decipheredTexts.First().CipherText.Text);
        }
Beispiel #2
0
 public string SolveChallenge()
 {
     return(_cipherText.Crack(_cracker).DecipheredText);
 }