


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 for cryptography
Typology: Lab Reports
1 / 4
This page cannot be seen from the preview
Don't miss anything!



The purpose of this lab is to implement the following algorithms in MATLAB:
Plaintext: This is what you want to encrypt Ciphertext: The encrypted output Enciphering or encryption: The process by which plaintext is converted into ciphertext Encryption algorithm: The sequence of data processing steps that go into transforming plaintext into ciphertext. Various parameters used by an encryption algorithm are derived from a secret key. Secret key: A secret key is used to set some or all of the various parameters used by the encryption algorithm. The important thing to note is that the same secret key is used for encryption and decryption in classical cryptography. It is for this reason that classical cryptography is also referred to as symmetric key cryptography. Deciphering or decryption: Recovering plaintext from ciphertext Decryption algorithm: The sequence of data processing steps that go into transforming ciphertext back into plaintext. Various parameters used by a decryption algorithm are derived from the same secret key that was used in the encryption algorithm. In classical cryptography for commercial and other civilian applications, the decryption algorithm is made public. Lab#02: Classical Encryption Techniques (Monoalphetic Ciphers)
Block cipher: A block cipher processes a block of input data at a time and produces a ciphertext block of the same size. Stream cipher: A stream cipher encrypts data on the y, usually one byte at a time.
Ceaser Cipher is a substitution technique. It is the earliest known example of a substitution cipher. Each character of a message is
key letter in the English alphabet minus one. For instance, if the plain text is “are you ready” and the key is “d”, then the cipher text becomes “duhbrxuhdgb”. This is done according to the following formula:
corresponding to the cipher text. In these formulas, ' k ' would be the secret key. The symbols ' E ' and ' D ' represent encryption and decryption where decryption is given as:
Matlab Code: Store the letters in a vector. Their locations in the vector represent their values. Use find() command to find the plaintext in the letters vector. Use mod() command for the modular arithmetic.
In multiplicative cipher, we multiply each plain letter by our secret key. C=E(k,P)=(P x k)mod 26 Lab#02: Classical Encryption Techniques (Monoalphetic Ciphers)