Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Authentication System: Java: Just need help on the pseudocode please. For securi

ID: 3917821 • Letter: A

Question

Authentication System:

Java: Just need help on the pseudocode please.

For security-minded professionals, it is important that only the appropriate people gain access to data in a computer system. This is called authentication. Once users gain entry, it is also important that they only see data related to their role in a computer system. This is called authorization. For the zoo, you will develop an authentication system that manages both authentication and authorization. You have been given a credentials file that contains credential information for authorized users. You have also been given three files, one for each role: zookeeper, veterinarian, and admin. Each role file describes the data the particular role should be authorized to access. Create an authentication system that does all of the following:

Asks the user for a username
Asks the user for a password
Converts the password using a message digest five (MD5) hash

o It is not required that you write the MD5 from scratch. Use the code located in this document and follow the comments in it to perform this operation.

Checks the credentials against the valid credentials provided in the credentials file

o Use the hashed passwords in the second column;the third column contains the actual passwords for testing and the four throw contains the role of each user.

Limits failed attempts to three before notifying the user and exiting the program
Gives authenticated users access to the correct role file after successful authentication

o The system information stored in the role file should be displayed. For example, if a zookeeper’s credentials is successfully authenticated, then the contents from the zookeeper file will be displayed. If an admin’s credentials is successfully authenticated, then the contents from the admin file will be displayed.

Allows a user to log out
Stays on the credential screen until either a successful attempt has been made, three unsuccessful attempts have been made, or a user chooses to exit

allowed to add extra roles if you would like to see another type of user added to the system, but you may not remove any of the existing roles.

THANK YOU!

Explanation / Answer

Pseudocode For The Above:

function psswdAuthentication():
Declaring string for holding passwords
Declaring variable for indication
Declaring string of characters

Ask the user for username
Getting the username

Prompt the user for password
Getting the password

Converting password into MD5
Clicking Login
Call function psswdMD5

Clicking Logout
Call fucntion logout

Clicking Exit
Delete Session
Exit with Message

function psswdMD5():
if attempt done is less than 3
Call MD5 funtion
Check for valid credentials

Successful Login
else
Exit with a message

function logout():
Delete Session
Logs user out of the session with a message