Modern Cryptography

Practicals for M.Sc. CS students | (M3022201)

Lab 10 (03/05/2023)

Problems for lab session:

Practicals

* Use your Roll Number for sample execution.

Part 1

1. Update the code of DES (week-9) for DES Decryption algorithm following the given constraints:

  • Code must print the output for each of the following steps for both encryption and decryption:
    • Plaintext before and after padding
    • Data before and after every block
    • Data after each Round
    • Set of all (16) generated keys

Part 2

1. WAP to roll a die using basic socket programming in Python. Use the following instruction to solve the problem:

  • There should be two python scripts, i.e., server.py and client.py
  • The die should be rolled through server.py
  • Request to roll the die should be sent through client.py

* Solution for part 2 should be extracted into 2 Python scripts from week10.py.


Back to Homepage