Question: in python Creating threads of executions for a multithreaded program Basic operations on threads Creating a subclass of threading. Thread Exercises 1: Implement a simple

 in python Creating threads of executions for a multithreaded program Basic

in python

Creating threads of executions for a multithreaded program Basic operations on threads Creating a subclass of threading. Thread Exercises 1: Implement a simple encryption algorithm that works as follows The algorithms uses a numerical private key named key Each character in the original text is encrypted as the character resulting from xoring the ASCII code of that character with private_key. For example to encrypt "A" enc_char = chr(ord ("A") key) A. Write a function named ecrypt_file that takes as argument the file name to be encrypted, the name of the output file (where to store the encrypted text) and the encryption key. The function opens the first file, and encrypted the text according to the logtim above and stores the encrypted text in the second file B. Write a multithreaded program that attempts to encrypt the contents of 10 different files concurrently using the function ecrypt_file 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!