예제 #1
0
        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();
        }
예제 #2
0
 public ExaminationViewModel()
 {
     Number  = "2";
     Message = "ARBAIT";
     ExamKey = new AffineKey(1, 5);
 }
예제 #3
0
 public AffineCipher(IAlphabet characterTable, AffineKey key)
 {
     Alphabet = characterTable;
     Key      = key;
 }