DATA ENCRYPTION ALGORITHM

DES ENCRYPTION

Key Permutation

DES DECRYPTION

Difference between encryption and decryption in very simple way

Encryption Decryption

Initial permutations


One round of the DES

First round

DES Expansion


DES S-Box(substitution box)

Properties of the S-box


The Function f(x,k)


DES p-box(Permutation Box)


DES subkey

Parity Check bits For Error Detection

Definition:For any binary string a1a2.........an,append another bit an+1 = a1 ⊕ a2........ ⊕ an, obtaining a1a2.........anan+1.This new sequence can detect one error

    Adding 8 parity check bits in DES key
Parity
    Each Pi in position 8i is the parity check bit of the previous 7 bits

Permuted choice 1

Left shift operation

LSi:Each LSi is a circular shift of some positions.The number of shifted positions is given below

left shift