Hill Cipher Simulator

Input

Format: top-left, top-right, bottom-left, bottom-right

58
173

Block Size: 2 characters

Type: Polygraphic Substitution

Det(K) mod 26: 9

Encryption Process
5
8
17
3
C
R
Y
P
T
O
G
R
A
P
H
Y
A
0
B
1
C
2
D
3
E
4
F
5
G
6
H
7
I
8
J
9
K
10
L
11
M
12
N
13
O
14
P
15
Q
16
R
17
S
18
T
19
U
20
V
21
W
22
X
23
Y
24
Z
25
Encrypt Block: "CR"
QH
Plaintext:CR
Vector:[2, 17]

Matrix Multiplication (K × P):

K

[5, 8]

[17, 3]

×

P

[2]

[17]

Result Vector (mod 26):[16, 7]
Ciphertext:QH
Encrypt Block: "YP"
GL
Plaintext:YP
Vector:[24, 15]

Matrix Multiplication (K × P):

K

[5, 8]

[17, 3]

×

P

[24]

[15]

Result Vector (mod 26):[6, 11]
Ciphertext:GL
Encrypt Block: "TO"
ZB
Plaintext:TO
Vector:[19, 14]

Matrix Multiplication (K × P):

K

[5, 8]

[17, 3]

×

P

[19]

[14]

Result Vector (mod 26):[25, 1]
Ciphertext:ZB
Encrypt Block: "GR"
KX
Plaintext:GR
Vector:[6, 17]

Matrix Multiplication (K × P):

K

[5, 8]

[17, 3]

×

P

[6]

[17]

Result Vector (mod 26):[10, 23]
Ciphertext:KX
Encrypt Block: "AP"
QT
Plaintext:AP
Vector:[0, 15]

Matrix Multiplication (K × P):

K

[5, 8]

[17, 3]

×

P

[0]

[15]

Result Vector (mod 26):[16, 19]
Ciphertext:QT
Encrypt Block: "HY"
TJ
Plaintext:HY
Vector:[7, 24]

Matrix Multiplication (K × P):

K

[5, 8]

[17, 3]

×

P

[7]

[24]

Result Vector (mod 26):[19, 9]
Ciphertext:TJ
QHGLZBKXQTTJ