Skip to content

Commit 693ac29

Browse files
committed
Fix
1 parent 0159df9 commit 693ac29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/thealgorithms/ciphers/ADFGVXCipher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class ADFGVXCipher {
1717

1818
private static final char[] POLYBIUS_LETTERS = {'A', 'D', 'F', 'G', 'V', 'X'};
19-
private static final char[][] POLYBIUS_SQUARE = {{'N', 'A', '1', 'C', '3', 'H'}, {'8', 'T', 'B', '2', 'O', 'M'}, {'E', '5', 'W', 'R', 'P', 'D'}, {'4', 'F', '6', 'G', '7', 'I'}, {'9', 'J', '0', 'K', 'L', 'Q'}, {'S', 'U', 'V', 'X', 'Y', 'Z'}};
19+
private static final char[][] POLYBIUS_SQUARE = {{'N', 'A', '1', 'C', '3', 'H'}, {'8', 'T', 'B', '2', 'O', 'M'}, {'E', '5', 'W', 'R', 'P', 'D'}, {'4', 'F', '6', 'G', '7', 'I'}, {'9', 'J', '0', 'K', 'L', 'Q'}, {'S', 'U', 'V', 'X', 'Y', 'Z'}};
2020
private static final Map<String, Character> POLYBIUS_MAP = new HashMap<>();
2121
private static final Map<Character, String> REVERSE_POLYBIUS_MAP = new HashMap<>();
2222

src/test/java/com/thealgorithms/ciphers/ADFGVXCipherTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void adfgvxCipherEncryptTest() {
1515
String keyword = "PRIVACY";
1616

1717
// when
18-
String cipherText = hillCipher.encrypt(message, keyword);
18+
String cipherText = adfgvxCipher.encrypt(message, keyword);
1919

2020
// then
2121
assertEquals("DGDDDAGDDGAFADDFDADVDVFAADVX", cipherText);
@@ -28,7 +28,7 @@ void adfgvxCipherDecryptTest() {
2828
String keyword = "PRIVACY";
2929

3030
// when
31-
String plainText = hillCipher.decrypt(cipherText, keyword);
31+
String plainText = adfgvxCipher.decrypt(cipherText, keyword);
3232

3333
// then
3434
assertEquals("ATTACKAT1200AM", plainText);

0 commit comments

Comments
 (0)