Question: Not really sure what my instructor wants. Please help. Despite the name, we can actually use the original passwordEncrypt() function to reverse the initial encryption
Not really sure what my instructor wants. Please help.
Despite the name, we can actually use the original passwordEncrypt() function to reverse the initial encryption that was applied to the passwords, we just have to be clever about what we provide within the parenthesis. In the end, you should end up with something like this:
print(passwordEncrypt(________,_______))
where the first position will house your encrypted password, or passwords[i][1]. The second will be an altered encryptionKey. The trick is coming up with a "key" that will reverse (keyword here!) the initial alphabetic shift of 16 that was applied. Just make sure your print() is properly nested in line under the IF statement so it only prints the unencryptedPassword IF a match is found.
if(choice == '3'): print("What website is this password for?") website = input() print("What is the password?") unencryptedPassword = input() if website in password[0][1]: password[0][1] = uncryptedPassword continue lst=[] lst.append(website) lst.append(encryptedPassword) password.append(lst)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
