

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
network security manual cryptography
Typology: Lab Reports
1 / 3
This page cannot be seen from the preview
Don't miss anything!


The purpose of this lab is to implement SDES encryption and decryption in MATLAB. THEORY Encryption: It takes an 8-bit block of plain text and a 10-bit key as input and produces an 8-bit block of cipher text as output. Decryption: It takes an 8-bit block of cipher text and the same 10-bit key used to produce that ciphertext as input and produces the original 8-bit block of plaintext. Algorithm involves 5 functions:
or Ciphertext=IP
( f (^) K 1 (SW ( f (^) K 2 (IP (ciphertext )))))
Refer to the detailed figure for encryption and decryption from the lecture notes. The reference figures are shown below for encryption and key generation: Matlab Code: The constants being used are hard coded first in MATLAB. Create three functions, main, key generator and fk function. The key and fk functions are