I need help!
Credential file is a file that holds important information about users, including their usernames and hashed
passwords. The purpose of this program is to add a new user to the credential file. Since only the user admin
has the proper permissions to manage users (e.g., adding a new user), the program will first retrieve all username
and passwords from credential file, stores them in an array of struct user, iterates through the array to find
the password (in the hashed form) for user “admin”, and then asks the user to enter the admin’s password. Only
when the passwords match, the user is asked to provide the information regarding the new user. The program then
adds the user to the array of struct user, and then writes the updated list of users to credential file.
Consider the struct user used in the previous lab. In this lab, we will improve the security of our program
by storing usernames and passwords in credential file. credential file has the following format (separated
by ‘t’):


0 comments