Sunteți pe pagina 1din 2

Coding Chart

ENCODING MESSAGE

Message to encode: We are cute & smart. :)


E U S R
W A T & & M T :
E R C E A . )

Transform the matrices to their numerical equivalents :


0 30 8 24 30 22 21 30
26 4 30 23 & 31 16 23 2
8 21 6 8 30 4 1 3

Matrix C
3 -2 2
-1 1 -1
1 0 1

Multiply the matrices by Matrix C :


-36 124 -24 42 88 42 19 92
18 -47 16 -9 & -29 -10 1 -31
8 51 14 32 60 26 22 33

Reduce the numbers to equivalent Mod 32 :


28 28 8 10 24 10 19 28
18 17 16 23 & 3 22 1 1
8 19 14 0 28 26 22 1

Transform the matrices to their equivalent letters :


Y Y E G U G P Y
O N M T & ) S . .
E P K Y W S .
The encoded message is: YOEYNPEMKGTU)YGSWP.SY..
DECODING MESSAGE

Transform the matrices to their numerical equivalents


28 28 8 10 24 10 19 28
18 17 16 23 & 3 22 1 1
8 19 14 0 28 26 22 1

Inverse of Matrix C
1 2 0
0 1 1
-1 -2 1

Multiply the matrices by inverse of Matrix C :


64 62 40 56 30 54 21 30
26 36 30 23 & 31 48 23 2
-56 -43 -26 -56 -2 -28 1 -29

Reduce the numbers to equivalent Mod 32 :


0 30 8 24 30 22 21 30
26 4 30 23 & 31 16 23 2
8 21 6 8 30 4 1 3

The decoded message is: We are cute & smart. :)

S-ar putea să vă placă și