program in c to implement s des algorithm
#1

S-DES Algorithm:-

Encryption:- Encryption algorithm takes an 8-bit block of plaintext and 10-bit key as input and produce an 8-bit block of ciphertext as output.
1. Encryption algorithm involves five functions:
1) an initial permutation function (IP)
2) a complex function (fk) which involves both substitution and permutation
3) a simple permutation function (SW) that switches two halves of data
4) the function f again
5) a permutation function that is the inverse of the initial permutation(IP-1).
2. The function fk takes as input as input data passing through the encryption algorithm and an 8-bit subkeys.
3. Produced ciphertext will be
Ciphertext = IP-1(fk2(SW(fk1(IP(plaintext)))))

Key Generation:- A 10 bit key from which two 8 bit subkeys are generated.
1. The key is first subjected to permutation (P10).
2. Then shift operation is performed.
3. Output of the shift operation then passes through a permutation that produces an 8 bit output(P8) for the first subkey (K1).
4. The output of the shift operation also feeds into another shift and another of P8 to produce the second subkey(K2).

Decryption :- Decryption is just reverse process of encryption.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: advantages and disadvantages of des algorithm ppt, program to implement banker s algorithm in java with gui, c program to implement dsa algorithm, java code to implement rc5 algorithm, des algorithm explanation with example ppt, des algorithm example ppt, triple des algorithm in c,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  program code of solar tracking system using 8051 microcontroller 6 23,336 03-05-2018, 09:30 PM
Last Post: Guest
  booths algorithm multiplication 8085 4 2,480 11-05-2017, 11:25 AM
Last Post: jaseela123d
  code for deduplication using genetic algorithm 1 902 12-04-2017, 03:42 PM
Last Post: jaseela123d
Information implementing any algorithm for resource provisioning in cloudsim 1 882 12-04-2017, 01:14 PM
Last Post: jaseela123d
  load balancing algorithm using cloudsim java code 1 1,025 11-04-2017, 12:54 PM
Last Post: jaseela123d
  brain mri segmentation using watershed algorithm ppt 1 911 07-04-2017, 02:44 PM
Last Post: jaseela123d
  source code for digital signature with rsa encryption algorithm 1 859 07-04-2017, 12:45 PM
Last Post: jaseela123d
  source code for apriori algorithm in asp net 1 759 05-04-2017, 10:58 AM
Last Post: jaseela123d
  quine mccluskey algorithm implementation 1 714 31-03-2017, 03:07 PM
Last Post: jaseela123d
Smile c deduplication algorithm code 1 796 29-03-2017, 03:49 PM
Last Post: jaseela123d

Forum Jump: