One Time Pad (OTP) encryption, when implemented properly, cannotbe hacked by cryptanalysis. This method uses the clear text(message to be encrypted), a random key of characters (the samesize of the clear text) and the exclusive OR (XOR) operator. Writea C program with the following functions:
1. main function with a menu including 3 choices: encrypt file,decrypt file and exit program.
2. make_rand_key(length of key, key) generates a fixed lengthstring of random chars.
3. encrypt(clear file, key file, cipher file) generates a randomkey using make_rand_key(), perform the clear text XOR ket text,byte-by-byte, to produce the cipher text string and write both therandom key and
PayPal Gateway not configured
PayPal Gateway not configured