mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-25 05:22:39 +08:00
@ -7,7 +7,8 @@ package com.thealgorithms.ciphers;
|
||||
* Letters in alphabet takes place to two dimension table.
|
||||
* Encrypted text is created according to row and column in two dimension table
|
||||
* Decrypted text is generated by looking at the row and column respectively
|
||||
* Additionally, some letters in english alphabet deliberately throws such as U because U is very similar with V
|
||||
* Additionally, some letters in english alphabet deliberately throws such as U because U is very
|
||||
* similar with V
|
||||
*
|
||||
* @author Hikmet ÇAKIR
|
||||
* @since 08-07-2022+03:00
|
||||
@ -16,11 +17,11 @@ public class Polybius {
|
||||
|
||||
private static final char[][] key = {
|
||||
// 0 1 2 3 4
|
||||
/* 0 */{ 'A', 'B', 'C', 'D', 'E' },
|
||||
/* 1 */{ 'F', 'G', 'H', 'I', 'J' },
|
||||
/* 2 */{ 'K', 'L', 'M', 'N', 'O' },
|
||||
/* 3 */{ 'P', 'Q', 'R', 'S', 'T' },
|
||||
/* 4 */{ 'V', 'W', 'X', 'Y', 'Z' },
|
||||
/* 0 */ {'A', 'B', 'C', 'D', 'E'},
|
||||
/* 1 */ {'F', 'G', 'H', 'I', 'J'},
|
||||
/* 2 */ {'K', 'L', 'M', 'N', 'O'},
|
||||
/* 3 */ {'P', 'Q', 'R', 'S', 'T'},
|
||||
/* 4 */ {'V', 'W', 'X', 'Y', 'Z'},
|
||||
};
|
||||
|
||||
private static String findLocationByCharacter(final char character) {
|
||||
|
Reference in New Issue
Block a user