Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop and test a Python program that reads messages contained in a text file, and encodes the messages saved in a new file. For encoding

image text in transcribed
Develop and test a Python program that reads messages contained in a text file, and encodes the messages saved in a new file. For encoding messages, a simple substitution key should be used as shown below, Each letter in the left column is substituted with the corresponding letter in the right column when encoding. Thus, to decode, the letters are substituted the opposite way. Unencrypted message files will be simple text files with file extension.txt. Encrypted message files will have the same file name, but with file extension. enc. For each message encoded, a new substitution key should be randomly generated and saved in a file with the extension 'key'. Your program should also be able to decrypt messages given a specific encoded message and the corresponding key

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago