Reference no: EM132192442
Extending the Caesar cypher into a full-fledged password saver.
The program should be able to:
• Lookup passwords for websites
• Add new passwords for websites (encrypting them with the caesar cypher)
• Store these passwords to a file on the computer
• Load passwords from a stored password file
• Most of the code is provided but there are some critical components missing. You will need to add these components.
• Create a python file called PasswordSaver.py in PyCharm and copy the following code into it.
Extra Credit: Add additional menu items to the program. For instance, add the ability to delete passwords.
Tip:I highly recommend you revert back to the original source code. The lookup process we want to accomplish relies heavily on some of the functions created at the top and it appears you've slightly altered those and/or added your own. For instance, you've commented out lines 148 and 149. These are essential because they will list the website names currently stored in the list, so the user can select one. Once you've restored the original source code, try to follow the steps as they were presented in the comments.
Step 1 has us creating our loop.
Step 2: once the loop is established, we need to compare the user's input with the website names stored in the list. For this statement, we need to consider how to index items in a list of list. There are some pretty valuable hints in the comments for step 2.
Step 3 is saying that IF step 2 is true (i.e. the user's input matches a website in the list), we want to decrypt the password stored for that website. To do this, we can actually use passwordEncrypt() function. Despite the name, this function can be used to reverse the caesar cypher on an encrypted message. We just have to be clever about what we use as our encryptionKey variable.
Attachment:- pasword saver.rar