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
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