You are on page 1of 19

DATA SECURITY

AND NETWORK

Presented By
Group no. 08

By Sir Yasir Shabir


GROUP NO. 08
 Name Roll no.
 Seemab Ishfaq 05
 Muhammad Uzair Zubair 18
 Naeem Ijaz 31
 Azhar Ameen 53
S DES
SIMPLIFIED DATA ENCRYPTION
STANDARD
S DES
 encrypting a plan text into an encrypted message
 S-DES has been divided into multi-steps
 Points should be remembered.
 It is a block cipher.
 It has 8-bits block size of plain text or cipher
text.
 It uses 10-bits key size for encryption.
 It is a symmetric cipher.
 It has Two Rounds.
KEY GENERATION OF S-DES
 need to generate a key
 how to generate the key
 where the key is to be used.
 Just follow the steps.
STEPS TO GENERATE KEY
 Step 1:

 select a random key of 10-bits


 shared between both parties(sender and
receiver)
 Select key:1010000010
 Step 2:
 Putthis key into P.10 Table and permute the bits.
 P.10 Table

1 2 3 4 5 6 7 8 9 10
Input
Output 3 5 2 7 4 10 1 9 8 6
Should be

1 0 1 0 0 0 0 0 1 0

Outpu 1 0 0 0 0 0 1 1 0 0
t

Now the output will be:

Key: 1000001100
 Step 3:
 Divide the key into two halves, left half and right half;
 {1 0 0 0 0} | {0 1 1 0 0}
 Step 4:
 Now apply the one bit Round shift on each half:
Before round shift: {10000} | {01100}
After round shift: {00001} | {11000}
 The output will be:
 {0 0 0 0 1} {1 1 0 0 0}
 Step 5:
 again combine both halve of the bits
 Put them into the P8 table
 that will be the K1 or First key
 Combine: 0 0 0 0 1 1 1 0 0 0
 Permute into 8bit table:
Input 1 2 3 4 5 6 7 8 9 10

Combine-bits 0 0 0 0 1 1 1 0 0 0

Output Should be 6 3 7 4 8 5 10 9

Output bits 1 0 1 0 0 1 0 0

The output and K1 or key One will be:


K1=1 0 1 0 0 1 0 0
 Step6:
 S-DES has two round
 we also need two keys
 generate the second key
 go in step 4 take both halves
 take the output of first round shift in above step
4.
 Which are: {00001} | {11000}
 Step 7:
 apply two round shift circulate
 left half: 00001
 Right half: 11000
 After the two rounds shift
 Left half: 00100
 Right half: 00011
 Combine both together: As: 0 0 1 0 0 – 0 0 0 1 1
 Step 8:
 put the bits into 8-P Table
 Combine bits: 0 0 1 0 0 0 0 0 1 1
 P.8 Table

1 2 3 4 5 6 7 8 9 10
Input

Combine-bits 0 0 1 0 0 0 0 0 1 1
Output Should be 6 3 7 4 8 5 10 9
Output bits 0 1 0 0 0 0 1 1

 The output of the bits are your Second key or K2:


 K2: 0 1 0 0 0 0 1 1
Finally we create both keys successfully:
 K1: 1 0 1 0 0 1 0 0 (see in step 5)
 K2: 0 1 0 0 0 0 1 1 (see in step 8)
HOW TO ENCRYPT THE PLAIN TEXT
INTO CIPHER TEXT IN S-DES AFTER
GENERATING KEYS.
NOW, LET’S START ENCRYPTION OF
PLAIN TEXT INTO CIPHER TEXT.
SOOO CONTINUE FOR THIS TOPIC
COMING THE MR. AZHAR AMIN FIRST
MR. SEEMAB ISHFAQ EXPLAIN THE TABLES OF S DES
THANKSSS…

You might also like