Sei sulla pagina 1di 4

EXAMPLE OF CRYPTOGRAPHY :

 Representation of alphabets into numbers in cryptography:

A 1 D 4 G 7 J 10 M 13 P 16 S 19 V 22 Y 25
B 2 E 5 H 8 K 11 N 14 Q 17 T 20 W 23 Z 26
C 3 F 6 I 9 L 12 O 15 R 18 U 21 X 24 SPACE27

 MESSAGE:

NIRMA UNI

N=14

I=9

R=18

M=13

A=1

SPACE=27

U=21

N=14

I=9

 Matrix of message (M) :


14 13 21
[9 1 14]
18 27 9
 Key matrix (C) [sent by sender with message,can be different]:

𝟐 4 7
[2 5 8]
3 6 9

Now we will multiply both matrices M and C ;

2 4 7 14 13 21
[2 5 8] [9 1 14]
3 6 9 18 27 9
190 219 161
[MC] ~ [217 247 189]
258 288 228

This matrix will sent to recipient. Recipient will decode this matrix by multiplying it with inverse of key
matrix ;

 Key matrix (C) :

2 4 7
[2 5 8]
3 6 9

 Inverse of key matrix (C-1) :

1 −2 1
[−6 3 2]
3 0 −2
 Decoding of message using inverse key:

1 −2 1 190 219 161


[MC*C-1] ~ [−6 3 2 ] [ 217 247 189]
3 0 −2 258 288 228

14 13 21
~ [9 1 14]
18 27 9

14 = N

9 =I

18= R

13= M

1 =A

27= SPACE

21= U

14 = N

9 = I

NIRMA UNI
This message will shown to recipient after decryption.

Potrebbero piacerti anche