I am trying to pick up cryptography on my own and no problem with caesar and vigenere cipher but here I am trying to understand or to start this bit on the one-time pad. Could anyone advise or give me a head start on this?
Write a program (preferably Java) to generate a one-time pad, which is a relatively large file of all
random data (say 1 MB). The program should also be able to encrypt/decrypt files based on the
generated one time pad.
Tip: use the following test vector to check if your program does encryption correctly.
Plaintext (ASCII): Every cloud has a silver lining
OTP (HEX): 6dc72fc595e35dcd38c05dca2a0d2dbd8e2df20b129b2cfa29ad17972922a2
ciphertext (HEX): 2 8b14ab7ecc33ea157b539ea426c5e9def0d81627eed498809c17ef9404cc5