Assignment #2 Total marks:100
Due Date: 1st December (In Class)
Note: There will be a quiz (60%)in the class on the day of
submission.
Question#1 (25 Marks)
1. What is the difference between modular arithmetic and ordinary arithmetic?
2. Find the multiplicative inverse of at least five elements in mod 87?
3. Write a computer program that implements fast exponentiation (successive squaring) modulo
n.
4. create software that can encrypt and decrypt using a 2 * 2 Hill cipher
5. Differentiate between secret-key encryption and public-key encryption.
6. What is the difference between a block cipher and a stream cipher?
7. What are the two general approaches to attacking a cipher?
8. What is the difference between a monoalphabetic cipher and a polyalphabetic cipher?
9. What is a transposition cipher?
10. Briefly define the terms substitution and permutation?
11. Show that DES decryption is, in fact, the inverse of DES encryption?
12. Construct a Playfair matrix with the key “cryptography”. Make a reasonable assumption about if
needed?
Question#2 (15 Marks)
1. Encrypt the message by using the given key matrix?
Plaintext: Briefly define the terms
2. Decrypt the message by using the given key matrix?
Ciphertext: DAKWOEJRNFJDJJED