Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

What is the difference between persistence and self-determination?

Answered: 1 week ago

Question

=+d. Purchaser: buys the item.

Answered: 1 week ago