The D’Agapeyeff Polybius Cipher is a classical cipher named after Alexander D’Agapeyeff, who documented it in his 1939 book Codes and Ciphers. It is a type of Polybius (Square) Cipher that uses a 5×5 grid to convert letters into coordinates, typically numbers, which can then be transmitted or further encrypted. This method converts each letter of plaintext into a pair of digits representing its row and column in the grid.

Unlike simple substitution ciphers, where letters are directly replaced by other letters, the D’Agapeyeff Polybius Cipher encodes letters as numeric pairs, adding an extra layer of abstraction and making frequency analysis slightly more complex.

D’Agapeyeff Polybius Cipher: Encoding

Using the standard 5×5 Polybius square (I/J combined), the plaintext “HELLO” is split into individual letters and mapped to coordinates:

5x5 Grid (I/J combined):

   1 2 3 4 5
1: A B C D E
2: F G H I K
3: L M N O P
4: Q R S T U
5: V W X Y Z

Plaintext: H E L L O
Coordinates: 2,3 1,5 3,1 3,1 3,4
Output: 23 15 31 31 34

D’Agapeyeff Polybius Cipher: Decoding

Decoding reverses the numeric coordinates back into letters by referencing the same Polybius grid:

Input: 23 15 31 31 34
Mapping back:

23 → H
15 → E
31 → L
31 → L
34 → O

Plaintext: HELLO

D’Agapeyeff Polybius Cipher: Notes

By converting letters to numbers, the D’Agapeyeff Polybius Cipher provides a structured yet simple method for secure communication. It can be combined with other ciphers, such as a transposition cipher or fractionating polygraphic methods like the Bifid Cipher, to enhance security further. Its historical significance lies in demonstrating how coordinate-based encryption can abstract plaintext while remaining easy to encode and decode.

D’Agapeyeff Polybius Cipher