Question: Encrypter The first program you will write shall be named encrypter.py. The job of this program will be to encrypt (mix or shuffle) the lines




Encrypter The first program you will write shall be named encrypter.py. The job of this program will be to encrypt ("mix" or "shuffle") the lines of a text file, but do it in such a way that it can be un-done later with a separate program (which you will also write) When run, your program will first request a file to encrypt. Requesting the file name will look like: Enter a name of a python program to encrypt: file_name This program will then run it's encrypting (mixing) algorithm on the text file named file_name. It will save the encrypted version of the text file to a file named encrypted.tx Your program will encrypt an input file by re-arranging the lines of the input file, based on indexes retrieved from calling randint. For example, the user decide to encrypt a python file named sample.txt that looks like this: I00 I You then run If the user were to use encrypter.py to encrypt the file, the prompt and input should look like so: Enter a name of a python program to encrypt: sample.txt After running, encrypted.txt will have the following contents: I00 Encrypter The first program you will write shall be named encrypter.py. The job of this program will be to encrypt ("mix" or "shuffle") the lines of a text file, but do it in such a way that it can be un-done later with a separate program (which you will also write) When run, your program will first request a file to encrypt. Requesting the file name will look like: Enter a name of a python program to encrypt: file_name This program will then run it's encrypting (mixing) algorithm on the text file named file_name. It will save the encrypted version of the text file to a file named encrypted.tx Your program will encrypt an input file by re-arranging the lines of the input file, based on indexes retrieved from calling randint. For example, the user decide to encrypt a python file named sample.txt that looks like this: I00 I You then run If the user were to use encrypter.py to encrypt the file, the prompt and input should look like so: Enter a name of a python program to encrypt: sample.txt After running, encrypted.txt will have the following contents: I00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
