Assignment-1: Marks (Weightage) : 20 (8%) Submission Due Date
Assignment-1: Marks (Weightage) : 20 (8%) Submission Due Date
[Note: You may use computer programs to solve. But show detailed steps of the
solutions.] Attempt any 15 questions but solving all the problems will carry extra credit.
1. Draw a matrix like the Table (relationship between security services and
mechanisms) that shows the relationship between security services and attacks.
2. Draw a matrix similar to the Table (relationship between security services and
mechanisms) that shows the relationship between security mechanisms and
attacks.
3. Find integer x such that
a. 5x 4 (mod 3) b) 7x 6 (mod 5) c) 9x 8 (mod 7)
4. Prove the following:
a. a b (mod n) and b c (mod n) imply a c (mod n)
b. [(a mod n) - (b mod n)] mod n = (a - b) mod n
c. [(a mod n) * (b mod n)] mod n = (a * b) mod n
5. Show that an integer N is congruent modulo 9 to the sum of its decimal digits.
For example, 475 4 + 7 + 5 16 1 + 6 7 (mod 9).
6. Break the following ciphertext
“PELCGBTENCULVFSBEVASBEZNGVBAFRPHEVGL” which is generated by
monoalphabetic additive substitution cipher.
7. Break the ciphertext “UNTWXEAPUWNUGGKSYXK” which is generated by
monoalphabetic multiplicative substitution cipher.
8. The affine Caesar cipher works as follows.
C=E([K1, K2], P) = P * K1 + K2 P=D([K1, K2], C) = (C - K2) * K1-1
A basic requirement of any encryption algorithm is that it be one-to-one. That is, if
p q, then E(k, p) E(k, q). Otherwise, decryption is impossible, because more
than one plaintext character maps into the same ciphertext character. The affine
Caesar cipher is not one-to-one for all values of K1.
For example, for K1 = 2 and K2 = 3, then E([K1,K2], 0) = E([K1,K2], 13) = 3.
(a)Determine which values of K1 are not allowed.
(b)Are there any limitations on the value of K2? Explain.
9. Decrypt the message “XICKGLTIZKSCRHUFM” by considering the
monoalphabetic substitution scheme as a b c ... x y z ➔Z Y X ... C B A.
18.Encrypt the plaintext P (your registration number) using the Hill cipher. The key
[𝐾] should be also your registration number. [Note: Consider Z13={0,1,…,9, M, I,
S}]
2 0 𝑀
For example, 𝐾 = 𝑃 = 20𝑀𝐼𝑆7123 = [𝐼 𝑆 7 ].
1 2 3
Show your calculations and the result. Also show the calculations for the
corresponding decryption of the ciphertext to recover the original plaintext.
---$---