Question: Pointer Exercise in C + + : In this exercise, you will be given a key and a message encrypted using Vigen re Encryption. Your

Pointer Exercise in C++:
In this exercise, you will be given a key and a message encrypted using Vigenre Encryption. Your goal is to decrypt this message with the given key.
Input format:
Key size
Key chars (decimals representing ascii values)
Message size
Message chars (decimals representing ascii values)
Notes:
All chars in key will only be lowercase alphabets
In char array (char[]), there must be a \0 at the end (ascii =0)
The problem already added \0 at the end of key and message
How does Vigenre Encryption work?
Message: This is an example case.
Key: example
What about Decryption? Just change + to -
Here's the example:
You can refer to this code template as attached below:
The txt file is as provided below:
5
1001011091110
136
9494943270115122117117101102105111101102119114114101333294949410
7711412132981111181193210211810432104113971144610
84120115100119113329810011311332109114121100321161081121133211911332120116115321051151009710012032971163211812010311410411411287719580778049494610211698443210
1111131043210110510111311710432108120321029932725144321201161111131111013258410
Reminder: code in C++ only.

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!