Question: Using python , Part 1 Create a program called PasswordManager, that will manage a single password. The PasswordManager will store the encrypted password (a string).
Using python ,
Part 1
Create a program called PasswordManager, that will manage a single password.
The PasswordManager will store the encrypted password (a string).
-
Please initialize a plaintext password
-
Please initialize a ciphertext password that corresponds with the plaintext password as done above)
The PasswordManager has three functions
encrypt: this takes a password (a string) and returns the encrypted form of the password.
validateEncrypt contains the original encrypted password in the parameter
Step 1 - Ask the user to enter their password
Step 2 calls the encrypt function
Step 3 the encrypted password in parameter checked against the password encrypted in step 2
Step 4 - if step 3 is true then the password is valid (this is a print statement)
Step 5 if step 3 is false then the password is not valid (this is a print statement)
verifyPassword: this takes a string (a password) and returns true if it meets the following criteria:
it is at least 8 characters long
it contains at least one letter
it contains at least one digit
it contains at least one of these four characters: , ?, !
-
Otherwise it returns false.
If it meets the criteria in verifyPassword and returns true (this is a print statement) if the password meets the requirements otherwise it is false (this is a print statement). Once it is true it then encrypts (calls the Encrypt function) the password and stores it as a variable.
Your program will use the following menu to prompt the user to test the implementation:
A. Change Password
B. Validate Password
C. Quit Enter your choice:
The menu should be processed in a loop, so the user may continue testing the password operations.
The Change Password ( create a new password or change their existing password) option should ask the user to enter a new password ( call the verifyPassword function).
The Validate Password option takes the original encrypted password string. Calls the validateEncrypt function with the original encrypted password in the parameter
par2:
The combination of the secret word and the accepted password make this user unique
Give the secret word a numerical value
Assign a numerical value to each character
Example 1: A = 1, B = 2, C = 3, D = 4, E = 5, , Z = 26
Example 2: A = 2, B = 1, C = 3, D = 5, E = 4, F = 7, where the vowels are even numbers and the constants are odd numbers
Using example 1: If the user enters the secret word bed the encryption is 2 + 5 + 4 which is equal to 11
Define another function called cryptoHash which allows for chained hashing
The hash table size is 4 which has 4 slots ranging from 0 to 3.
Using chained hashing, Hash the secret word to the table
Linked list Class should have 3 fields/variables
Field for the secret word
Field for the password
Field for the link/next
Hash the already encrypted password and the secret word to its slot within the hash table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
