1. Digrafid Cipher encoder
Text : ABCD efghi
Alphabet Keyword-1 : abc
Alphabet Keyword-2 : abc
Period : 6
Keyword-2 Alphabet is Vertical / Horizontal in Table-2 : VerticalSolution:The Digrafid cipher is a fractionated cipher that encrypts letter pairs (digraphs) into three digit coordinates number using 3 grids, mixes these coordinates number, and turns them back to letter pairs.
The plaintext is an odd number of letters, so we add a '#' letter, at the end of the text.
Table-1| \ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | | 1 | a | b | c | d | e | f | g | h | i | | 2 | j | k | l | m | n | o | p | q | r | | 3 | s | t | u | v | w | x | y | z | # |
| Table-3 |
| | \ | 1 | 2 | 3 | | 1 | a | j | s | | 2 | b | k | t | | 3 | c | l | u | | 4 | d | m | v | | 5 | e | n | w | | 6 | f | o | x | | 7 | g | p | y | | 8 | h | q | z | | 9 | i | r | # | Table-2 |
The plaintext is divided into pairs and in period of 6 length group
In each pair, first letter is located in top Table-1 and the second letter in the bottom Table-2
A 3-digit number is generated by column number of the first letter in Table-1, intersection number of the two letters and row number of the second letter in Table-2. This 3-digit number is written vertically below the each corresponding letter pair.
The text is converted to its 3-digit number (Column, Intersection, Row), and written vertically, in group of 6 columns| Plaintext | ab | cd | ef | gh | i# |
| Column | 1 | 3 | 5 | 7 | 9 |
| Intersection | 1 | 1 | 1 | 1 | 3 |
| Row | 2 | 4 | 6 | 8 | 9 |
For each group, digits are merged horizontally and divided in 3-digit pairs, then these pairs are replaced by the letter pair using the tables to produce the ciphertext.
Now divide into 3-digit pair and this pairs turned back to letters| 3-digit pair | 135 | 111 | 246 | 791 | 389 |
| Ciphertext | aw | aa | kf | ys | ur |
So finally
| Plaintext | : abcdefghi# |
| Key1 | : abcdefghijklmnopqrstuvwxyz# |
| Key2 | : abcdefghijklmnopqrstuvwxyz# |
| Ciphertext | : awaakfysur |
2. Digrafid Cipher encoder
Text : hello world
Alphabet Keyword-1 : abc
Alphabet Keyword-2 : abc
Period : 6
Keyword-2 Alphabet is Vertical / Horizontal in Table-2 : VerticalSolution:The Digrafid cipher is a fractionated cipher that encrypts letter pairs (digraphs) into three digit coordinates number using 3 grids, mixes these coordinates number, and turns them back to letter pairs.
Table-1| \ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | | 1 | a | b | c | d | e | f | g | h | i | | 2 | j | k | l | m | n | o | p | q | r | | 3 | s | t | u | v | w | x | y | z | # |
| Table-3 |
| | \ | 1 | 2 | 3 | | 1 | a | j | s | | 2 | b | k | t | | 3 | c | l | u | | 4 | d | m | v | | 5 | e | n | w | | 6 | f | o | x | | 7 | g | p | y | | 8 | h | q | z | | 9 | i | r | # | Table-2 |
The plaintext is divided into pairs and in period of 6 length group
In each pair, first letter is located in top Table-1 and the second letter in the bottom Table-2
A 3-digit number is generated by column number of the first letter in Table-1, intersection number of the two letters and row number of the second letter in Table-2. This 3-digit number is written vertically below the each corresponding letter pair.
The text is converted to its 3-digit number (Column, Intersection, Row), and written vertically, in group of 6 columns| Plaintext | he | ll | ow | or | ld |
| Column | 8 | 3 | 6 | 6 | 3 |
| Intersection | 1 | 5 | 6 | 5 | 4 |
| Row | 5 | 3 | 5 | 9 | 4 |
For each group, digits are merged horizontally and divided in 3-digit pairs, then these pairs are replaced by the letter pair using the tables to produce the ciphertext.
Now divide into 3-digit pair and this pairs turned back to letters| 3-digit pair | 836 | 156 | 535 | 635 | 494 |
| Ciphertext | hx | jo | ew | fw | vv |
So finally
| Plaintext | : helloworld |
| Key1 | : abcdefghijklmnopqrstuvwxyz# |
| Key2 | : abcdefghijklmnopqrstuvwxyz# |
| Ciphertext | : hxjoewfwvv |