1. ADFGVX Cipher encoder
Text : ABCD efghi
Key : key
Alphabet : abcdefghijklmnopqrstuvwxyz0123456789Solution:The ADFGVX Cipher is a combination of modified polybius square with columnar transposition. It uses six letters A,D,F,G,V,X
Alphabet : abcdefghijklmnopqrstuvwxyz0123456789
Build the square:Fill the 6x6 square row by row by Alphabet : abcdefghijklmnopqrstuvwxyz0123456789
and labeling both rows and columns with adfgvx
| a | d | f | g | v | x |
| a | a | b | c | d | e | f |
| d | g | h | i | j | k | l |
| f | m | n | o | p | q | r |
| g | s | t | u | v | w | x |
| v | y | z | 0 | 1 | 2 | 3 |
| x | 4 | 5 | 6 | 7 | 8 | 9 |
Fractionate the plaintextRemove all the symbols except available in the square.
Each character is replaced by its row and column labels, producing a stream of adfgvx pairs.
This step turns the Text into fractionated form
| Plaintext | a | b | c | d | e | f | g | h | i |
| Pairs | aa | ad | af | ag | av | ax | da | dd | df |
Apply the columnar transposition on fractionated messagecolumnar transposition steps :
Write the plaintext in row-by-rowThe columns are sorted alphabetically, based on the keyword and the new table isRead the ciphertext in column-by-columnaagaad,adavdd,afaxdf
| Plaintext | : aaadafagavaxdadddf |
| Key | : key |
| Ciphertext | : aagaadadavddafaxdf |
| Plaintext | : abcdefghi |
| Key | : key |
| Ciphertext | : aagaadadavddafaxdf |
2. ADFGVX Cipher encoder
Text : hello world
Key : code
Alphabet : abcdefghijklmnopqrstuvwxyz0123456789Solution:The ADFGVX Cipher is a combination of modified polybius square with columnar transposition. It uses six letters A,D,F,G,V,X
Alphabet : abcdefghijklmnopqrstuvwxyz0123456789
Build the square:Fill the 6x6 square row by row by Alphabet : abcdefghijklmnopqrstuvwxyz0123456789
and labeling both rows and columns with adfgvx
| a | d | f | g | v | x |
| a | a | b | c | d | e | f |
| d | g | h | i | j | k | l |
| f | m | n | o | p | q | r |
| g | s | t | u | v | w | x |
| v | y | z | 0 | 1 | 2 | 3 |
| x | 4 | 5 | 6 | 7 | 8 | 9 |
Fractionate the plaintextRemove all the symbols except available in the square.
Each character is replaced by its row and column labels, producing a stream of adfgvx pairs.
This step turns the Text into fractionated form
| Plaintext | h | e | l | l | o | w | o | r | l | d |
| Pairs | dd | av | dx | dx | ff | gv | ff | fx | dx | ag |
Apply the columnar transposition on fractionated messagecolumnar transposition steps :
Write the plaintext in row-by-rowc 1 | o 4 | d 2 | e 3 |
| d | d | a | v |
| d | x | d | x |
| f | f | g | v |
| f | f | f | x |
| d | x | a | g |
The columns are sorted alphabetically, based on the keyword and the new table isc 1 | d 2 | e 3 | o 4 |
| d | a | v | d |
| d | d | x | x |
| f | g | v | f |
| f | f | x | f |
| d | a | g | x |
Read the ciphertext in column-by-columnddffd,adgfa,vxvxg,dxffx
| Plaintext | : ddavdxdxffgvfffxdxag |
| Key | : code |
| Ciphertext | : ddffdadgfavxvxgdxffx |
| Plaintext | : helloworld |
| Key | : code |
| Ciphertext | : ddffdadgfavxvxgdxffx |