Question: python please Exercises 2: . Implement a SimpleCipher class as a subclass of threading.Thread. The SimpleCipher has has at least: A data member called private_key

python please
python please Exercises 2: . Implement a SimpleCipher class as a subclass

Exercises 2: . Implement a SimpleCipher class as a subclass of threading.Thread. The SimpleCipher has has at least: A data member called private_key A proper constructor A method called ecrypt_file that takes as an argument the file name to be encrypted and the name of the output file (where to store the encrypted text). The method opens the first file, and encrypts the text according to the following algorithm Imagine you have a number of roads (private_key) and each character in the string is a car. You need to place the characters(cars) on the roads in a zigzag pattern, going downwards and upwards. Once you have placed the characters, the encrypted string will be the letters concatenated. You read the characters by road (top to bottom). 6 Example: string = HELLO, private key = 3 H E The encrypted text is: HOELL Write a multithreaded program that attempts to encrypt the contents of 10 different files concurrently using the SimpleCipher class defined in the previous step. You need to create one thread of execution to process each file. Your program asks the user to input the names of the text files to be encrypted

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!