Professional Documents
Culture Documents
Hill Cipher
Hill Cipher
Hill Cipher
Q W E R T Y U I O P A S D
N O P Q R S T U V W X Y Z
F G H J K L Z X C V B N M
9 · 3 = 27
27 Mod 26 = 1
N O P Q R S T U V W X Y Z
13 14 15 16 17 18 19 20 21 22 23 24 25
Message to encrypt = HELLO WORLD
HELLO WORLD has been encrypted to
SLHZY ATGZT
Change message into 2 × 1 letter vectors
Change each vector into 2 × 1 numeric
vectors
Multiply each numeric vector by decryption
matrix
Convert new vectors to letters
Message to encrypt = SLHZYATGZT
SLHZYATGZT has been decrypted to
HELLO WORLD
Creating valid encryption/decryption
matrices is the most difficult part of Hill
Ciphers.
Otherwise, Hill Ciphers use simple linear
algebra and modular arithmetic