Skip to content
jadhaddad01 edited this page Jul 15, 2020 · 9 revisions

The following tests were made using the last commit #49.

//Test with PASS.txt removed in ../data/ [jad@jad src] $ java Main 2020/07/14 21:31:16 EDT Welcome to your personal database, Chef.

CRITICAL ERROR! PASS.txt File Not Found! Troubleshooting Missing Pass file: -- Creating Generic Password With New File. ✓ -- Encrypting New Password. ✓ -- Testing Encryption Key. ✓ -- Writing Encryption Key to File. ✓ -- Testing Encryption Key from File. ✓ Success! Your New Password is: password

Please enter your password: password Decryption Success.

Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5

Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 0 Person's Information Has Been Saved To The Files.

Have a good day, Chef. 2020/07/14 21:31:31 EDT

//Test with DATA.txt removed in ../data/ [jad@jad src] $ java Main 2020/07/14 21:32:31 EDT Welcome to your personal database, Chef.

Please enter your password: password Decryption Success.

Loading Data from File: -- Opening DATA File. x

CRITICAL ERROR! DATA.txt File Error! Troubleshooting DATA file Error: -- Checking for DATABACKUP. ✓ -- Creating DATA file and Copying DATABACKUP to DATA File. ✓ Success! 0 Person's Information Has Been Restored.

Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5

Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 0 Person's Information Has Been Saved To The Files.

Have a good day, Chef. 2020/07/14 21:32:49 EDT [jad@jad src] $

//Test with DATA.txt and DATABACKUP.txt removed in ../data/ [jad@jad src] $ java Main 2020/07/14 21:33:49 EDT Welcome to your personal database, Chef.

Please enter your password: password Decryption Success.

Loading Data from File: -- Opening DATA File. x

CRITICAL ERROR! DATA.txt File Error! Troubleshooting DATA file Error: -- Checking for DATABACKUP. x -- Creating and Initializing DATA file. ✓ Success! An Empty DATA File Has Been Restored.

Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5

Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 0 Person's Information Has Been Saved To The Files.

Have a good day, Chef. 2020/07/14 21:34:00 EDT

//Testing with invalid inputs (wrong passcode / String as numbers / etc) [jad@jad src] $ java Main 2020/07/14 21:35:14 EDT Welcome to your personal database, Chef.

Please enter your password: awdawd Decryption Failed. Retype Password: password Decryption Success.

Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 123213 Please choose a number between 1 and 5. [1 -> Print] [2 -> Search] [3 -> Add] [4 -> Password] [5 -> Exit] Choice: 1

Print Database Requested. Where Would You Like To Print?

1 -> Print to Console. 2 -> Print to Custom File.

Choice: 3123213 Please choose a number between 1 and 2. [1 -> Console] [2 -> Custom File] Choice: 1

Print to Console Requested.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 1

Print Database Requested. Where Would You Like To Print?

1 -> Print to Console. 2 -> Print to Custom File.

Choice: 2

Print to Custom File Requested.

1 -- Please Choose a Name for your File. (NAME.txt) Choice for NAME: awdawd

2 -- Confirm File Name. File Name = awdawd.txt Confirm? (Y/N) Choice: dawdvbawdbg Y = Correct File Name | N = False File Name Confirm? (awdawd.txt): y

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2

Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Last Name: Phone Number: adwadaw ERROR! Malicious input. Please try again. Phone Number: 613 ERROR! Phone number not found

Step 2: Creating list matching criteria. -- Checking basic input criteria. x -- FAIL! No Matching Users Found!

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3

Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Last Name: Phone Number: awdwad ERROR! Malicious input. Please try again. Phone Number: 613 Address Number: dawdawd ERROR! Malicious input. Please try again. Address Number: 613 Address Road: City: Province: Country: Postal Code: Description: Success! 1 Person's Information Has Been Added.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2

Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Last Name: Phone Number: dawdwa ERROR! Malicious input. Please try again. Phone Number: 613 Address Number: dawdwad ERROR! Malicious input. Please try again. Address Number: 613 Address Road: City: Province: Country: Postal Code:

Step 2: Creating list matching criteria. -- Checking basic input criteria. ✓ -- Checking individuals who match all inputs. ✓ -- SUCCESS! 1 Matching Individual Has Been Found!

Step 3: Where to Print Data.

1 -> Print to Console. 2 -> Print to Custom File.

Choice: 1

Print to Console Requested.

Name: Unknown Unknown Phone number: 613 Address: 613 Unknown, Unknown, Unknown, Unknown PC: Unknown Description: Added on 2020/07/14 21:36:38 EDT | Added on 2020/07/14 21:36:27 EDT | Unknown

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 4

Change Password Requested Step 1: Enter your Old Password. Please enter your password: adwadaw Decryption Failed. Retype Password: password Decryption Success.

Step 2: Choose a New Password. Enter a New Password: Confirm New Password: Error!Password Cannot Be Null. Enter New Password Again. Enter a New Password: pass Confirm New Password: Error!Confirmation Does Not Match. Enter New Password Again. Enter a New Password: pass Confirm New Password: pass

Saving New Password. -- Encrypting New Password. ✓ -- Testing Encryption Key. ✓ -- Writing Encryption Key to File. ✓ -- Testing Encryption Key from File. ✓ SUCCESS! The New Password Has Been Created.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5

Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 1 Person's Information Has Been Saved To The Files.

Have a good day, Chef. 2020/07/14 21:37:13 EDT [jad@jad src] $

//Creating 3 people and searching to find only 2 then printing to a custom file [jad@jad src] $ java Main 2020/07/14 21:38:48 EDT Welcome to your personal database, Chef.

Please enter your password: pass Decryption Success.

Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 1 Person's Information Has Been Loaded Locally.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3

Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Jad Last Name: dawudbawdbawudb Phone Number: 5156 Address Number: 654156 Address Road: dawdva] City: auwdbawd Province: awdbaw Country: bdiawbdoa Postal Code: dawubd Description: duwadbwa Success! 1 Person's Information Has Been Added.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3

Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Jad Last Name: awdbawuidvbawud Phone Number: 654864132 Address Number: 65456 Address Road: dawdvwa] City: dawdaw gf Province: dwagtg Country: awdwafgwa Postal Code: awgwag Description: awgwag Success! 1 Person's Information Has Been Added.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2

Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Jad Last Name: Phone Number: Address Number: Address Road: City: Province: Country: Postal Code:

Step 2: Creating list matching criteria. -- Checking basic input criteria. ✓ -- Checking individuals who match all inputs. ✓ -- SUCCESS! 2 Matching Individuals Have Been Found!

Step 3: Where to Print Data.

1 -> Print to Console. 2 -> Print to Custom File.

Choice: 2

Print to Custom File Requested.

1 -- Please Choose a Name for your File. (NAME.txt) Choice for NAME: Jad

2 -- Confirm File Name. File Name = Jad.txt Confirm? (Y/N) Choice: y SUCCESS! Jad.txt has been created with 2 Individuals' Information P.S -> The file is located at the /data directory of the master directory.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5

Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 3 People's Information Have Been Saved To The Files.

Have a good day, Chef. 2020/07/14 21:39:53 EDT [jad@jad src] $

//Trying to input menu and exit in random inputs [jad@jad src] $ java Main 2020/07/14 21:40:32 EDT Welcome to your personal database, Chef.

Please enter your password: pass Decryption Success.

Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 3 People's Information Have Been Loaded Locally.

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 1

Print Database Requested. Where Would You Like To Print?

1 -> Print to Console. 2 -> Print to Custom File.

Choice: menu

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3

Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Last Name: Phone Number: menu

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 4

Change Password Requested Step 1: Enter your Old Password. Please enter your password: pass Decryption Success.

Step 2: Choose a New Password. Enter a New Password: menu

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2

Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Last Name: Phone Number: Address Number: Address Road: City: Province: Country: menu

Information Database Menu.

1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)

P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: Please choose a number between 1 and 5. [1 -> Print] [2 -> Search] [3 -> Add] [4 -> Password] [5 -> Exit] Choice: 2

Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)

First Name: Last Name: Phone Number: Address Number: Address Road: City: Province: exit [jad@jad src] $

Clone this wiki locally