You are on page 1of 6

UNIVERSITY OF MANAGEMENT AND TECHNOLOGY

MID-TERM EXAMINATION, SPRING 2021


DATA and NETWORK SECURITY
DR. AMJAD HUSSAIN ZAHID
Total Time: 120 Minutes Total Marks: 20

Fill This Table.


Roll
Name
Number

Do Not Fill This Table.


Q# 1 2 TOTAL
Marks

ATTEMPT ALL QUESTIONS.

 Solve each question on some other paper. Take a picture of solution work (rough
work) of each question. Paste your LAST ANSWER in the space provided for the
answer in this exam paper. Submit this document (exam paper) back to me ONCE
Before 1:00 pm at amjad.zahid@umt.edu.pk

Late submission will not be


accepted at all.
Q#1
Solve a complete example of Rabin Cryptosystem. Following
conditions must be kept in mind:

 p and q must be greater than 100 and less than 1000.


 Value of message is between 20 and 100.
 Don’t ask other students about their values.
o Matching values will not be marked.

Paste your Final Answer below:


Q#2
Use RC4 Cipher to encrypt the message (plaintext) bytes

M0 = ___________ M1 = ___________ M2 = ___________

Assume values of M0 , M1 and M2 yourself. Values of two


students should not match. Each value consists of 8 bits.
Don’t take all 0’s and all 1’s.

Key is: K0 = 11011011 K1 = 10101010 K2 = 11000011


Length of State Array is 8.

Paste your Final Answer below:


s

You might also like