Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write this code using CLASSES. I use pycharm. I do not use command line. So write a code that works using pycharm. Post a screen

Write this code using CLASSES. I use pycharm. I do not use command line. So write a code that works using pycharm. Post a screen shot of of the code and output.

Using Python3, implement a Caesar cipher to a text file (*.txt) (not case sensitive) by assigning a random n value between [-1,25]. Your algorithm should use a text file as the input in the encrypting phase. Also it is required to select a special alphabetic character randomly, and leave that special key character unchanged. After encrypting the file, the program should produce two outputs, a key file containing the n value and the special character, and the encrypted text file. You should avoid encrypting the special character, white space, numerical characters, punctuation marks, and other UTF-8 symbols.

For the decryption phase, your program should take those two files generated by the encryption phase, read the necessary clues from the key file, and apply the decryption on the encrypted text file resulting the original text file (not case sensitive). You should come up with your own method to distinguish between the key character and an actual ciphered character.

Your program should successfully encrypt and decrypt the instructors test files that contain at least 100 lines.

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

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago