You are on page 1of 8

Caesar Cipher Cryptography:

Plain Text According to my Name: mynameisbilalahmed


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

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

Where: n=shifts, x= alphabet Position

For ‘m’:
N=5;

X=12;

E5(12)=(12+5)=17

Now, ‘r’ is for ‘m’

For ‘y’:
N=5;

X=24;

E5(24)=(24+5)=29,

Now, ‘d’ is for ‘y’

For ‘n’:
N=5;

X=13;

E5(13)=(13+5)=18

Now, ‘s’ is for ‘n’

For ‘a’:
N=5;
X=0;

E5(0)=(0+5)=5

Now, ‘f’ is for ‘a’

For ‘e’:
N=5;

X=4;

E5(4)=(4+5)=9

Now, ‘j’ is for ‘e’

For ‘i’:
N=5;

X=8;

E5(8)=(8+5)=13

Now, ‘n’ is for ‘i’

For ‘s’:
N=5;

X=18;

E5(18)=(18+5)=23

Now, ‘x’ is for ‘s’

For ‘b’:
N=5;

X=1;

E5(1)=(1+5)=6

Now, ‘g’ is for ‘b’

For ‘l’:
N=5;
X=11;

E5(11)=(11+5)=16

Now, ‘q’ is for ‘l’

For ‘h’:
N=5;

X=7;

E5(7)=(7+5)=12

Now, ‘m’ is for ‘h’

For ‘d’:
N=5;

X=3;

E5(3)=(3+5)=8

Now, ‘i’ is for ‘d’

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

mp nq mo ae ae mp et is bi

yx ar er lq lq hg df sz is

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

1st Row: mbe

2nd Row: ysimd

3rd Row: nilh

4rth Row: aeaa

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,eq

y ,n l

n , g t

a, i i

m, n z

e, e i

I, e m

S, rj

B, ef

I, nv

L, g r

a, i i

Encrypted Text: From Above Table l, ny

a, ee
qltizimjfvriyel h, e
diq m, rd

e, ei
5) Atbash Cipher:
d, nq
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

You might also like