6 kyu
Polybius square cipher - encode
412 of 1,342tiriana
Description:
Implement the Polybius square cipher.
Replace every letter with a two digit number. The first digit is the row number, and the second digit is the column number of following square. Letters 'I'
and 'J'
are both 24 in this cipher:
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | A | B | C | D | E |
2 | F | G | H | I/J | K |
3 | L | M | N | O | P |
4 | Q | R | S | T | U |
5 | V | W | X | Y | Z |
Input will be valid (only spaces and uppercase letters from A to Z), so no need to validate them.
Examples
"A" --> "11"
"IJ" --> "2424"
"CODEWARS" --> "1334141552114243"
"POLYBIUS SQUARE CIPHER" --> "3534315412244543 434145114215 132435231542"
Cryptography
Ciphers
Algorithms
Similar Kata:
Stats:
Created | Sep 30, 2014 |
Published | Sep 30, 2014 |
Warriors Trained | 2106 |
Total Skips | 129 |
Total Code Submissions | 3987 |
Total Times Completed | 1342 |
JavaScript Completions | 412 |
Python Completions | 850 |
Ruby Completions | 42 |
Java Completions | 88 |
Total Stars | 45 |
% of votes with a positive feedback rating | 94% of 230 |
Total "Very Satisfied" Votes | 203 |
Total "Somewhat Satisfied" Votes | 25 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 9 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |