Question: Using any programming language to implement Vernam Cipher. The program must be able to encrypt/decrypt a message and generate a randomkey or use a key

Using any programming language to implement Vernam Cipher. The program must be able to encrypt/decrypt a message and generate a randomkey or use a key specified by the user. Select the mode ( A - encryption/B - decryption/ C - Exit): h Input the plaintext: VERNHKCIPHER Select a key (R - random/ J - user input): R Plaintext: VERNAWCIPHER Key: 7648168244358116054888 CipherText: TAHRSPITXMAB Select the mode (A - encryption/B - decryption/ C - Exit): B Input the ciphertext: TAHRSP Select a key (R - random/ U - user input): UJ Input the key: 76481682443 Ciphertext: TAHRSP Key: 76481682443 Plaintext: VERNAK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
