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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!