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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started