static void Main(string[] args) { ICryptoKey key = new AffineKey(2, 5); Console.WriteLine(key.Validator.IsValid(key)); //SuperKey k = new SuperKey(); //k.SomeNewShit.Add("some string"); //ICryptoKey key2 = k; //Console.WriteLine(key.Validator.IsValid(key2)); ////int[,] newKyes = new int[2,2] { {1,2}, {3,4} }; ////key.KeyCodes = newKyes; AffineCipher cipher = new AffineCipher(new CharactersAlphabet(), (AffineKey)key); //cipher.Key = key2; Console.Read(); }
public ExaminationViewModel() { Number = "2"; Message = "ARBAIT"; ExamKey = new AffineKey(1, 5); }
public AffineCipher(IAlphabet characterTable, AffineKey key) { Alphabet = characterTable; Key = key; }