1. Hill Cipher encoder
Text : ABCD efghi
KeyMatrix : 2,3;5,7
Padding Character : zSolution:The Hill cipher is a polygraphic substitution cipher that uses linear algebra and matrix multiplication for encryption
| Letter | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |
| Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
KeyMatrix = 2,3;5,7
Plaintext = abcdefghi
Split into pairs of 2-lettersab cd ef gh i
Pad at end if necessary, to make pair of 2-lettersab cd ef gh iz
| Plaintext | : abcdefghiz |
| Ciphertext | : dhnfxdhbnh |
2. Hill Cipher encoder
Text : hello world
KeyMatrix : 2,3;5,7
Padding Character : zSolution:The Hill cipher is a polygraphic substitution cipher that uses linear algebra and matrix multiplication for encryption
| Letter | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |
| Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
KeyMatrix = 2,3;5,7
Plaintext = helloworld
Split into pairs of 2-lettershe ll ow or ld
| Plaintext | : helloworld |
| Ciphertext | : aldcqqbhfy |
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then