Question: Python code needed: The goal of this project is to implement the One-Time Pad. Optional psuedocode: def KeyGen(n): Initialize a key to an empty string
2 Challenge 1: KeyGen Write a function which generates the key for the OTP. This key should be randomly generated. For this, you must use the random module. The function should have input n, the desired key length, and output an n-bit random binary key INPUT: integer n OUTPUT: n-bit binary string Example: Input 3 output 110 Input 5 output 10110 Input 10, output 001 1000101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
