Docsity

Test Data Algo Test Data Algo, Essays (high school) of Computer science

Toggle sidebar
bg1
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
pf3

Partial preview of the text

Download Test Data Algo Test Data Algo and more Essays (high school) Computer science in PDF only on Docsity!

Assignment #2 Total marks:

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)
  13. Encrypt the message by using the given key matrix? Plaintext: Briefly define the terms
  14. Decrypt the message by using the given key matrix? Ciphertext : DAKWOEJRNFJDJJED

Question#3 (10 Marks) Question#4 (5 Marks) Question#5 (35 Marks) What are the required 64 output bits after the first round in the DES algorithm? You can use all standard tables which are given in the book or in the slides? Plaintext : “CRYPTOGR” (64 bits message by writing Ascii All capital) Key : “INVERSE” (56 Bits after removing only parity bits take ascii of key)