Professional Documents
Culture Documents
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
1) Caesar Cipher:
En(x) = (x + n) mod26
For ‘m’:
N=5;
X=12;
E5(12)=(12+5)=17
For ‘y’:
N=5;
X=24;
E5(24)=(24+5)=29,
For ‘n’:
N=5;
X=13;
E5(13)=(13+5)=18
For ‘a’:
N=5;
X=0;
E5(0)=(0+5)=5
For ‘e’:
N=5;
X=4;
E5(4)=(4+5)=9
For ‘i’:
N=5;
X=8;
E5(8)=(8+5)=13
For ‘s’:
N=5;
X=18;
E5(18)=(18+5)=23
For ‘b’:
N=5;
X=1;
E5(1)=(1+5)=6
For ‘l’:
N=5;
X=11;
E5(11)=(11+5)=16
For ‘h’:
N=5;
X=7;
E5(7)=(7+5)=12
For ‘d’:
N=5;
X=3;
E5(3)=(3+5)=8
Encrypted Text:
rdsfrjnxgnqfqf
mrji
2) Play Fair Cipher:
Key: computer (assumed)
c o m p u
t e r a b
d f g h i
k l n q s
v w x y z
Pairing:
Pairs that are in same Row Pairs that are in
same Column
my na me la la hm ed is bi
Encrypted Text:
pxqrorszisqeq
egptf
3) Rail Fence Cipher:
Number of Rail=n=5
M B E
Y S I M d
N I L H
a E A A
m l
5th Row: ml
Encrypted Text:
mbeysimdnilh
aeaaml
4) Vigenère Cipher:
Key: engineer
Alphabets:
Plain m y n a m e i s b i l a l a h m e d
Text
Key: e n g i n e e r e n g i n e e r e n
Code q l t i z i m j f v r i y e l d i q
:
m,eq
y ,n l
n , g t
a, i i
m, n z
e, e i
I, e m
S, rj
B, ef
I, nv
L, g r
a, i i
a, ee
qltizimjfvriyel h, e
diq m, rd
e, ei
5) Atbash Cipher:
d, nq
In- a b c d e f g h i j k l m n o p q r s t u v w x y z
Order
Reverse z y x w v u t s r q p o n m l k j i h g f e d c b a
order
Encrypted Text:
nbmznvrhyroz
ozsnvw