Professional Documents
Culture Documents
Roll-No: TCS2223033
INS Assignment 1:
s 18 C = (18*3+7)mod26=9 j
a 0 C = (0*3+7)mod26=7 h
i 8 C = (8*3+7)mod26=5 f
l 11 C= o
(11*3+7)mod26=14
➔The Encryption of plaintext “sail” is “jhfo”.
Plain Text:
I P L S E C R E T G
A M E B E Y O N D I
M A G I N A T I O N
Letter Pairs: ip, ls, ec, re, tg, am, eb, ey, on, di, ma, gi, na, ti, on
Keyword:
D E M U N
I V R S T
Y A B C F
G H K L O
P Q W X Z
Encrypted text:
Y D X C U A V M I O
B E M A D A Z T I Y
E B P Y E F I V Z T
The encrypted cipher text using PlayFair Cipher Algorithm for
“IPL SECRET GAME BEYOND IMAGINATION” is “YDX CUAVMI OBEM
ADAZTI YEBPYEFIVZT”
Round Function:
The heart of this cipher is the DES function, f. The DES function
applies a 48-bit key to the rightmost 32 bits to produce a 32-bit
output.
Expansion Permutation Box − Since right input is 32-bit and
round key is a 48-bit, we first need to expand right input to 48
bits. Permutation logic is graphically depicted in the following
illustration –
The graphically depicted permutation logic is generally described
as table in DES specification illustrated as shown −
XOR (Whitener). − After the expansion permutation, DES does
XOR operation on the expanded right section and the round key.
The round key is used only in this operation.
Substitution Boxes. − The S-boxes carry out the real mixing
(confusion). DES uses 8 S-boxes, each with a 6-bit input and a 4-
bit output. Refer the following illustration −
Key Generation:
1) The round-key generator creates sixteen 48-bit keys out of a 56-
bit cipher key. The process of key generation is depicted in the
following illustration −
2) The DES satisfies both the desired properties of block cipher.
These two properties make cipher very strong.
3) Avalanche effect − A small change in plaintext results in the very
great change in the ciphertext.
4) Completeness − Each bit of ciphertext depends on many bits of
plaintext.