Skip to content

Data Encryption Standard(DES) base on Feistal Cipher Data encrypted in 64-bit blocks using a 56-bit key (effective key) Ciphertext is of 64-bit long Encrypts by series of substitution and transpositions (or permutations)

Notifications You must be signed in to change notification settings

junaidirshad098/DES-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DES-Algorithm

Data Encryption Standard(DES) base on Feistal Cipher Data encrypted in 64-bit blocks using a 56-bit key (effective key) Ciphertext is of 64-bit long Encrypts by series of substitution and transpositions (or permutations).

In binary block ciphers, diffusion can achieved by repeatedly performing some permutation on the data followed by applying a function to that permutation Confusion can be achieved by the use of a complex substitution algorithm. A simple linear substitution algorithm adds little confusion.

Feistal Cipher provide confusion and diffusion of message.

Above folder

Source Code and Excel Sheet Avaliable with complete Explanation.

DES Encryption and Decryption Explanation in Excel Sheet

Excel Sheet

Subkeys Generatng: 16 keys

16 stages consisting of: selecting 24-bits from each half permuting them by PC2 for use in function f, rotating each half separately either 1 or 2 places depending on the key rotation schedule K Now, let’s first learn how to generate 16 sub-keys for each round of DES, given a secret key K of 64 bits long (includes 8 parity bits) by the sender K= [0101 1000 0001 1111 1011 1100 1001 0100 1101 0011 1010 0100 0101 0010 1110 1010] For each byte, the 8th bit is 1 if the number of 1s in the first 7 bits is even, 0 otherwise.

Excel Sheet

DES Encryption and Decryption Rounds

Excel Sheet

DES Encryption and Decryption Verification

Excel Sheet

About

Data Encryption Standard(DES) base on Feistal Cipher Data encrypted in 64-bit blocks using a 56-bit key (effective key) Ciphertext is of 64-bit long Encrypts by series of substitution and transpositions (or permutations)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages