PYsbook Create a facebook like application which uses an encrypted file that contains all the users and their information(database) of your application. When running the program, it loads/decrypts the...


Use python as programming language


PYsbook<br>Create a facebook like application which uses an encrypted file that contains all the users and<br>their information(database) of your application. When running the program, it loads/decrypts<br>the content of your database file for login purposes. It repeatedly prints Menu Option 1 until<br>exit.<br>A User has the option to create an account or log in the application or exit. If the user chooses<br>to create an account, he/she inputs the necessary information and the user input is<br>automatically saved/appended in the file database. When saving the user information in the<br>database, content must be encrypted.<br>A User must log in before he/she can access the application menu options 2.<br>Мели Оptions 1:<br>O Create Account<br>O Email addresses are unique, thus if the email address is already in the<br>database, another user cannot use this email address for account creation.<br>Notify the user if the account cannot be created when this issue arises.<br>Log in<br>O A user can only login if the database is not empty, else notify user that database<br>is empty and accounts need to be created<br>O Ask for the user's email address and password. If it matches, the user<br>successfully logs in and Menu Options 2 is shown to the user. Else notify the<br>user of password mismatch.<br>Exit<br>User Account information are as follows:<br>

Extracted text: PYsbook Create a facebook like application which uses an encrypted file that contains all the users and their information(database) of your application. When running the program, it loads/decrypts the content of your database file for login purposes. It repeatedly prints Menu Option 1 until exit. A User has the option to create an account or log in the application or exit. If the user chooses to create an account, he/she inputs the necessary information and the user input is automatically saved/appended in the file database. When saving the user information in the database, content must be encrypted. A User must log in before he/she can access the application menu options 2. Мели Оptions 1: O Create Account O Email addresses are unique, thus if the email address is already in the database, another user cannot use this email address for account creation. Notify the user if the account cannot be created when this issue arises. Log in O A user can only login if the database is not empty, else notify user that database is empty and accounts need to be created O Ask for the user's email address and password. If it matches, the user successfully logs in and Menu Options 2 is shown to the user. Else notify the user of password mismatch. Exit User Account information are as follows:
Age<br>Email Address(unique, serves as ID of user)<br>Password<br>Bio<br>User can do the following if logged in successfully (Meru Options 2):<br>O Update password<br>o Ask for the current password. If it matches, the user can change his/her<br>password(don't forget to save in the file database the updated password), else<br>notify the user of password mismatch.<br>Update bio<br>View own profile<br>o Displays all information of current user (except for password)<br>Add friend (friend to be added must be a valid user of the app or is in the database of<br>the application)<br>o Ask for the email address of the friend to be added, if it exists in the database,<br>add in the friends list of the user else notify that user does not exist.<br>o Adding of friends must be mutual, meaning if user added friend1, then user<br>should also be added to the list of friends of friend1<br>(Unfriend) Delete a friend from the user friends list<br>o Ask for the friend's email address, if it exists in the friends list of the user then<br>delete the friend from the friends list of user, else notify the user that friend<br>does not exist.<br>o Deleting of friends must also be mutual, meaning if user deleted friend1, then<br>user must also be deleted in friend1's friends list.<br>View all friends<br>o Simply print the names of user's friends<br>View friend's profile<br>o Ask for friend's email address<br>Prints friend's information(except for password) if it exists in friends list, if not<br>in the friends list, notify user.<br>Delete all friends<br>Ask for the user's password for confirmation before deleting all friends. If the<br>password mismatch, the user cannot delete all friends.<br>Log out<br>

Extracted text: Age Email Address(unique, serves as ID of user) Password Bio User can do the following if logged in successfully (Meru Options 2): O Update password o Ask for the current password. If it matches, the user can change his/her password(don't forget to save in the file database the updated password), else notify the user of password mismatch. Update bio View own profile o Displays all information of current user (except for password) Add friend (friend to be added must be a valid user of the app or is in the database of the application) o Ask for the email address of the friend to be added, if it exists in the database, add in the friends list of the user else notify that user does not exist. o Adding of friends must be mutual, meaning if user added friend1, then user should also be added to the list of friends of friend1 (Unfriend) Delete a friend from the user friends list o Ask for the friend's email address, if it exists in the friends list of the user then delete the friend from the friends list of user, else notify the user that friend does not exist. o Deleting of friends must also be mutual, meaning if user deleted friend1, then user must also be deleted in friend1's friends list. View all friends o Simply print the names of user's friends View friend's profile o Ask for friend's email address Prints friend's information(except for password) if it exists in friends list, if not in the friends list, notify user. Delete all friends Ask for the user's password for confirmation before deleting all friends. If the password mismatch, the user cannot delete all friends. Log out
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here