Question: I need to write a program that will take a text, encrypt it and then decrypt it as well using random feature and a seed(123).
I need to write a program that will take a text, encrypt it and then decrypt it as well using random feature and a seed(123). below is the spec:





The first program you will write shall be named mixer.py. The job of this program will be to encrypt ("mix" or "jumble") 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 mix: X This program will then run it's encrypting (mixing) algorithm on the text file . It will save the mixed version of the program to a file named encrypted.txt At this point you might be asking, how does the mixing work? And how can I mix in such a way that it can be undone by another program? Your program will "mix" an input file by randomly re- arranging the lines of the input file. For example, you might request that mixer.py encrypt a python file named get-cred entials.py that looks like this #get the username from a prompt username = raw input ("Login: >> #list of allowed users user1 = "Jack" user2 -"Jil1" #control that the user belongs to the list of allowed if username == user1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
