0% found this document useful (0 votes)
48 views

Hill Cipher Problem

The document describes an encryption and decryption method using a cipher matrix K. It encrypts the plain text "move more money" using the matrix K with values [14, 18; 5, 8]. It then decrypts the cipher text using the inverse of K.

Uploaded by

Elsa Pink
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Hill Cipher Problem

The document describes an encryption and decryption method using a cipher matrix K. It encrypts the plain text "move more money" using the matrix K with values [14, 18; 5, 8]. It then decrypts the cipher text using the inverse of K.

Uploaded by

Elsa Pink
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

HiLL CPHER

PROBLEM

ROBLE M
more
the Plain Text
-

"Pay
Consider
and USe h ntryptn
money

K-17 14 5
Enurypt and Detrypt the
a 18 al
a1 19

trx

SoLUTION *-

Gvun "

pay
more nmoney
Poin text
Pain
-

CPT
13 17 5
K y,
k=
1 818 a
a 1

Now, e t us onaidur
plan tux and

dtufd ntb 3 . ie.


1
C
E
t Z

90

99 9
C- KP, K,?t KP) mod a6
+

s ) t 18(0) + a(au)modl 26
303 mod a6

C (hP, +ka?»t Ks3Ps) mod 26


mod 2
s(us)+ &(o) + 19(24)
531 mod a6

C C C

Now, m?larly,
In plain tuxt,
e mol nl l
a y m UY

P P Ps

18 21 mod &6
13
5

a \|mod
15

(+ ()+ ail4)+ 2(I) ) mod 4


C- S32 mod Q6
ala)) mod 36
C 12) + le(l4) +
A90 mod a6

mod 6
Cg5 (1) + a1(1) + 19(1)J
644+ mod a6

C C 3

Novo, Sfm?lary
In plain x

mOYe m0 n

14
18 mod &6
219

S
mo
mud 6.
18
19

a4) mod 6
17(4)+ ai(») +
C 348 mod 6
ID
C 1+(4) + «[12) + a(14)) mod 26

312mood 26

a6
s(4) + aI(2)+ 19(14)mod
mud 26
S38
18

C C C
O

K S

Stoaly
plain bux
m oe mo

P Pa

5
8

5
4 a1mod 6
= I3 18

mod at
C,13(1)+ al(4) 4 a(a4))
353 mod a6

mod at
1(13) + 12(4)+ a(4)
C 3H mod 26
C 5 13) + a\(4) + 13(14)) mod a6
605 mo 6

C C C
15 3
D H
R

plainuxt
'0r qn
ne
P mo e m 0

x , ov, entyptkd tx a,
the Ctphur
RRL MWB
KAS PDH
DECRYPT|ON

Cowuidar,
th CEphar xx
RRL MwB kAS PDH
5
Ky,k 18

Bu
To deup th text, the nrAA Q
qufd.
Matktx K fa

ie
ad fot'n omai
K detamfant matrix

ad (k)
K
dut (K)
5
18 mod 6
'det(k)=|Kl
1
a 1 e ) - a(9))- a(14)-2la]

+ s a(a)- a ba)
S1D0 -
6069+ 30)mod a6

-939 mod 6
. |Kl = a
21
Colauor oK |8|
219

a19

&18

l13)-a(a1) a16) -2C16)


18(13-a1)
17(19)-9( als)-alc) ) - 2 ) |
11) -2t(s) nu
1 1)-18(s)
35+6
+300
X +
313 313 o

&6+ 52 -51

3546
300
313-0D
-31
26+-25a -51
Co-acor
aojoint o K anspo
300 -313 a67
mod 6
-3S+ 313 -2sa
6 -51
mod 26 -313 mod 26 a6+modl 26
3eo
313 mod 26
-22 m od 26|
-3S mod 2
6 mod 26 O mod 26 -SImed 26

a5
.'adjoink 14 8 =0.6 x"io)
6 O
.14 4264O = x
23
a5
4ot26 66 x
k 23
23
G6t26 92

14/3 as/a3 /23

S
k
6
15
4 0 13

To Vuripy |k.k: T
IS
1414 s||49 mol26 .
k.K
a|15 1 6
a
9 13J1a4

17(1)+1a09)+5t6) s)+1a(0)+s0a)D
17(4)+13s+sl4) 21ls)+1l6)+ai(4
1815) +2124 9+18 (17)t (6) 21
21(4)+ als)+a07+13 lo) als)+2l)t 190||
a)+ a(1s)H u64)
mod 2b6
A42 mod 26
43 mod 26 H42 Mod 26
26 4 fo mc 24
SS8 od 26 49Mod

494 Mood 26 Sa mod 26 365 m od 26

O O
0

Now, obtau the plafn txt


No
C.K P

C= I5
a | 1 5 15 6
6 4 0 17J
3 4

1(is) tn(a4) 1a+1(7)+ u6) 17(s)+1a(s)+ul(a)|


= (4)+
+1(a4) 12(1)+a(A)+1(6) 126s)t2a()+1(a)|
a()+Ra us)
+o7)+1ela) 1o(5)+b(6)+ 1s(i«)|
1o(4)+ D(is)+18{24) lola)
ishs)+ 3l6)+a(a
IS(4)+ 3(1s)+7a4) s()+al14)+ alo)
H42 544
4D& 39mtd
ASL
ab
362
3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy