Question: Using C++ Write a program to convert an inputted ciphertext back to the plaintext. the encryption is executed as follows: Plaintext: tellhimaboutme Key: cafecafecafeca Ciphertext:
Using C++
Write a program to convert an inputted ciphertext back to the plaintext.
the encryption is executed as follows:
Plaintext: tellhimaboutme
Key: cafecafecafeca
Ciphertext: wfrqkjsfepaypf ** For simplicity reason, the key1 used in the above process is defined as cityu and key2 is cafe. The length of the inputted ciphertext should be longer than the given keys cityu and caf, which means keys will surely be repeated until the length matches. Running samples: Sample 1: Input the ciphertext: cobijmtugewmlu The corresponding plaintext is: webelieveinyou Sample 2: Input the ciphertext: nkptwtgninjajioo The corresponding plaintext is: happyprogramming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
