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

NOTE!! I ONLY WANT THE PSEUDOCODE I need help creating Pseudocode for my Java Pr

ID: 3865866 • Letter: N

Question

NOTE!! I ONLY WANT THE PSEUDOCODE

I need help creating Pseudocode for my Java Project. For JAVA i need help with my project. here is it: As a security-minded professional, it is important that only the appropriate people gain access to data in your computer system. This is called authentication. Once users gain entry, it is also important that they only see data related to their role in the zoo. This is called authorization. You have been given a file of users and their credentials. Create an authentication system that does all of the following: Asks a user for a username Asks a 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 file (use the hashed passwords in the second column; the third column contains the actual passwords for testing) Limits failed attempts to three before notifying the user and exiting After successful authentication, uses the role in the credential file to display the correct system information loaded from the specific role file 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 You are 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. User name and Pw for the code to dialong box: griffin.keyes 108de81c31bf9c622f76876b74e9285f "alphabet soup" rosario.dawson 3e34baa4ee2ff767af8c120a496742b5 "animal doctor" bernie.gorilla a584efafa8f9ea7fe5cf18442f32b07b "secret password" donald.monkey 17b1b7d8a706696ed220bc414f729ad3 "M0nk3y business" jerome.grizzlybear 3adea92111e6307f8f2aae4721e77900 "grizzly1234" bruce.grizzlybear 0d107d09f5bbe40cade3de5c71e9e9b7 "letmein" Sorry!! Forgot to include the code. import java.security.MessageDigest; public class MD5Digest { public static void main(String[] args) throws Exception { //Copy and paste this section of code String original = "letmein"; //Replace "password" with the actual password inputted by the user MessageDigest md = MessageDigest.getInstance("MD5"); md.update(original.getBytes()); byte[] digest = md.digest(); StringBuffer sb = new StringBuffer(); for (byte b : digest) { sb.append(String.format("%02x", b & 0xff)); } //End copy/paste System.out.println("original:" + original); System.out.println("digested:" + sb.toString()); //sb.toString() is what you'll need to compare password strings } } This may help as well to organize. griffin.keyes 108de81c31bf9c622f76876b74e9285f "alphabet soup" zookeeper rosario.dawson 3e34baa4ee2ff767af8c120a496742b5 "animal doctor" admin bernie.gorilla a584efafa8f9ea7fe5cf18442f32b07b "secret password" veterinarian donald.monkey 17b1b7d8a706696ed220bc414f729ad3 "M0nk3y business" zookeeper jerome.grizzlybear 3adea92111e6307f8f2aae4721e77900 "grizzly1234" veterinarian bruce.grizzlybear 0d107d09f5bbe40cade3de5c71e9e9b7 "letmein" admin Zoo keeper file. Hello, Zookeeper! As zookeeper, you have access to all of the animals' information and their daily monitoring logs. This allows you to track their feeding habits, habitat conditions, and general welfare. Veternarian file Hello, Veterinarian! As veterinarian, you have access to all of the animals' health records. This allows you to view each animal's medical history and current treatments/illnesses (if any), and to maintain a vaccination log. System Admin file Hello, System Admin! As administrator, you have access to the zoo's main computer system. This allows you to monitor users in the system and their roles.

Explanation / Answer

Pseudocode :

authentication

initialize i to 3 // number of tries

while i > 0

input username and password

convert entered password to md5

open users file

if username entered exists then

return password from the file

if returned password matches exactly with md5 of user entered password then

login successful

call authorization(username)

return true

else

print error message login failed password incorrect

decrease i by 1

else

print error message login failed username incorrect

decrease i by 1

if i is equal to 0 then

print error message max tries exceeded

return false

authorization(username)

open credential file

fetch the role for the given username

print it on the screen

close the file

main

call authentication and store the return value in login variable

if login is true then

show logout option

else

show login and exit options

Please let me kno if you face any difficulty in understanding the code.