homework 3
AS AN employee with access to sensitive data
I WANT to randomly generate a password that meets certain criteria
SO THAT I can create a strong password that provides greater security
For companies that handle large amounts of sensitive data, weak passwords can pose a real security threat. An application that can generate strong passwords quickly and effortlessly saves employees time and ensures secure access to data.
GIVEN that a user needs a new, secure password
WHEN prompted for password criteria
THEN a password is generated
This application generates a random password based on user-selected criteria and features dynamically updated HTML and CSS powered by Javascript.
The user is first prompted to choose from a list of password criteria, then the application validates the user's input and generates a random password based on that input.
The user will be prompted to choose from the following password criteria:
-
Length (must be between 8 and 128 characters)
-
Character type:
-
Special characters (see examples)
-
Numeric characters
-
Lowercase characters
-
Uppercase characters
-
The application should validate user input and ensure that at least one character type is selected.
Once all prompts are answered, the user will be presented with a password matching the answered prompts. Displaying the generated password in an alert is acceptable, but attempt to write the password to the page instead.