Question: 1 . Ask the user to enter the username and password for an account they would like to sign into. 2 a . Check if

1.Ask the user to enter the username and password for an account they would like to sign into.
2a. Check if an account exists that has the username the user entered (make a method that does this), and then retrieve & decrypt the password for that account if it exists.
2b. Attempt to retrieve & decrypt the password associated with the username entered by the user. If a password isnt found in the database, there is no user with the username that was entered. Hint: make a modified version of retrievePasswordFromDatabase that has a username parameter. 3. Lastly, compare the decrypted password to the password that was just entered by the user. If the passwords match, print Sign In Successful!. If they dont match, print Incorrect Password! Lets assume that every username is completely unique (kind of like its a primary key).

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 Programming Questions!