Question: A crypt-analyst has devised a way to send a message using a method that entirely obscures the message from the enemy. A text of words

A crypt-analyst has devised a way to send a message using a method

that entirely obscures the message from the enemy.

A text of words coming from what appears to be an article written in

an old newspaper, is held by both the sender and the receiver of the

message.

Well call this text message:

text.txt

The sender adds a few key words to text.txt (these few key words are

the secret coded message that the sender wants the receiver to

receive). These key words are inserted in such a way as they are not

obvious to the reader (the interceptor) of the message.

Well call this text message:

cryptext.txt

By taking the difference between the set of the two messages, the

receiver can filter out all but the intended secret message that (s)he is

supposed to receive.

Write a program that will reveal the intended secret message.

The assignment should be coded in python. The chapter was going over sets, so I assume using sets will be helpful in solving this problem.

Take your result, and sort it so the message is in alphabetical order.

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!