Lab 4 (23/03/2023
)
* This session was postponded to 23/03/2023
Problems for lab session:
Practicals
NOTE: You also need to provide your algorithm’s output with 3 to 5 different messages (of various lengths) as the test case.
- Define the One Time Pad algorithm with the following properties:
- Use XOR operation for encryption and decryption
- NO padding should be done
- The Key must be numeric and psudo-randomly generated
- Use
LinearCongruentialGenerator()
to generate PRNs as Key- MUST provide the test cases for your solutions