1. ADFGX Cipher encoder
Text : ABCD efghi
Key : key
Alphabet25 : abcdefghiklmnopqrstuvwxyzSolution:The ADFGX Cipher is a combination of modified polybius square with columnar transposition. It uses five letters A,D,F,G,X
Alphabet : abcdefghiklmnopqrstuvwxyz
Build the square:Fill the 5x5 square row by row by Alphabet : abcdefghiklmnopqrstuvwxyz
and labeling both rows and columns with adfgx
| a | d | f | g | x |
| a | a | b | c | d | e |
| d | f | g | h | i | k |
| f | l | m | n | o | p |
| g | q | r | s | t | u |
| x | v | w | x | y | z |
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 adfgx pairs.
This step turns the Text into fractionated form
| Plaintext | a | b | c | d | e | f | g | h | i |
| Pairs | aa | ad | af | ag | ax | da | dd | df | dg |
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-columnaagddd,adaxdf,afaadg
| Plaintext | : aaadafagaxdadddfdg |
| Key | : key |
| Ciphertext | : aagdddadaxdfafaadg |
| Plaintext | : abcdefghi |
| Key | : key |
| Ciphertext | : aagdddadaxdfafaadg |
2. ADFGX Cipher encoder
Text : hello world
Key : code
Alphabet25 : abcdefghiklmnopqrstuvwxyzSolution:The ADFGX Cipher is a combination of modified polybius square with columnar transposition. It uses five letters A,D,F,G,X
Alphabet : abcdefghiklmnopqrstuvwxyz
Build the square:Fill the 5x5 square row by row by Alphabet : abcdefghiklmnopqrstuvwxyz
and labeling both rows and columns with adfgx
| a | d | f | g | x |
| a | a | b | c | d | e |
| d | f | g | h | i | k |
| f | l | m | n | o | p |
| g | q | r | s | t | u |
| x | v | w | x | y | z |
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 adfgx pairs.
This step turns the Text into fractionated form
| Plaintext | h | e | l | l | o | w | o | r | l | d |
| Pairs | df | ax | fa | fa | fg | xd | fg | gd | fa | 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 | f | a | x |
| f | a | f | a |
| f | g | x | d |
| f | g | g | d |
| f | a | 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 | x | f |
| f | f | a | a |
| f | x | d | g |
| f | g | d | g |
| f | a | g | a |
Read the ciphertext in column-by-columndffff,afxga,xaddg,fagga
| Plaintext | : dfaxfafafgxdfggdfaag |
| Key | : code |
| Ciphertext | : dffffafxgaxaddgfagga |
| Plaintext | : helloworld |
| Key | : code |
| Ciphertext | : dffffafxgaxaddgfagga |