Can you help me how create Polibio cryptography with c++ ?
Many thanks!!
https://www.cmswiki.net/risorse-sviluppo/codice-poligrafico-la-scacchiera-di-polibio
google translate:
"The oldest polygraphic code (multiple substitution) is probably Polybius' chessboard. The Greek historian Polybius (~200-118 BC), in his Histories (Book X), describes a cipher that he attributes to his contemporaries Cleoxenus and Democleitus: the idea is to cipher a letter with a pair of numbers between 1 and 5, according to the description of a 5x5 chessboard.
The message was thus transmitted with two groups of five torches (e.g. 1.5 = one torch lit on the right, five on the left) and could be any length. A chessboard for the modern alphabet (merging together the two infrequent characters k and q to obtain a total of 25 codes) is that in Tab. 2.
polybius chessboard
Example:
v i e n s u b s e q u e n t s
5124153424434513244435
The Polybius chessboard has some important features, namely the reduction in the number of characters used in the cipher message, the conversion into numbers and the reduction of a symbol into two parts that can be used separately. Its importance in the history of cryptography lies in being the basis of other ciphers such as the Playfair Cipher or the Germanic field cipher used in the First World War.
"
In his Histories (Book X) Polybius describes an
important method of encryption. The idea is to
The idea is to encrypt a letter with a pair of numbers
between 1 and 5, based on a 5x5 matrix containing the letters of the alphabet.
letters of the alphabet.
Each letter is represented by two numbers,
looking at the row and column in which it is located. For
example, a=11 and r=42.
Example
Beware of rocks
11444415345524353415 11223224 431335223224
Its importance in the history of cryptography lies in being the basis of other ciphers such as
Its importance in the history of cryptography lies in being the basis for other ciphers such as the Playfair cipher (see section 3.1 ) or the Germanic field cipher used in the First World War.