public void Setup() { INumericalKey keyCreation = new NumericalKey(); var key = keyCreation.GetKey(KEYWORD); encrypted = cipher.Encrypt(TrapezoidTestData.WIDTH, TrapezoidTestData.HEIGHT, TrapezoidTestData.MESSAGE, key); }
public void Example_From_Book_Mixed_Case() { const string KEYWORD = "NOcANDyFORiSSuE"; List <int> expected = new List <int> { 7, 9, 2, 1, 8, 3, 15, 5, 10, 11, 6, 12, 13, 14, 4 }; var numericalKey = new NumericalKey(); var key = numericalKey.GetKey(KEYWORD); Inspect(expected, key, KEYWORD); }
public void Example_From_Book() { const string KEYWORD = "nocandyforissue"; List <int> expected = new List <int> { 7, 9, 2, 1, 8, 3, 15, 5, 10, 11, 6, 12, 13, 14, 4 }; var numericalKey = new NumericalKey(); var key = numericalKey.GetKey(KEYWORD); Inspect(expected, key, KEYWORD); }
public void How_Does_A_Numerical_Key_Work() { const string KEYWORD = "lrqazxvrostvnobc"; List <int> expected = new List <int> { 4, 9, 8, 1, 16, 15, 13, 10, 6, 11, 12, 14, 5, 7, 2, 3 }; var numericalKey = new NumericalKey(); var key = numericalKey.GetKey(KEYWORD); Inspect(expected, key, KEYWORD); }