This week’s challenge required us to create an application that an employee can use to generate a random password based on criteria they’ve selected by modifying starter code. This app will run in the browser, and will feature dynamically updated HTML and CSS powered by JavaScript code that you write. It will have a clean and polished user interface that is responsive, ensuring that it adapts to multiple screen sizes.
The password can include special characters. Nb: list of Password Special Characters from the OWASP Foundation.
The following image shows the web application's appearance and functionality:
- Generate a password when the button is clicked
- Present a series of prompts for password criteria
- Length of password
- At least 10 characters but no more than 64.
- Character types
- Lowercase
- Uppercase
- Numeric
- Special characters ($@%&*, etc)
- Length of password
- Code should validate for each input and at least one character type should be selected
- Once prompts are answered then the password should be generated and displayed in an alert or written to the page
- Present a series of prompts for password criteria