Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.82 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.82 KB

password-generator

For this exercise I had to create a random password generator.

  • When the button is clicked it would generate a password.

  • I had to present a series of prompts for the following:

    • Length of password (Between 8-128 characters long).
    • Give a choice of character types (Lowercase, Uppercase, Numeric and Special characters ($@*%&, etc)).
    • The code should validate for each input, making sure at least 1 character type is selected.
    • After all prompts have been answered then the password can be created.
    • This will then input the password into the textbox on screen.

Useage

The website can be accessed here

To view the results you have to:

  • Open the link up in the browser.
  • Click on Generate Password button.
  • Input your selected password length in the prompt box shown.
  • Select OK to at least 1 of the options for character types.
  • After all prompts, your password should appear on the screen

This is how the page should look.

Before you click Generate Password

Alt text

During the process, where it asks for password length.

Alt text

How the page should look after password has been generated.

Alt text

Credits

Here are a few references that helped me to further understand basic Javascript.

Websites

Bro Code - This page helped me understand the logic and steps of generating a password when I got stuck

MDN - This helped me further understand working with objects and arrays.

License

Please refer to the LICENSE in the repo.