Skip to content

Generate a random password between 8-128 characters, based on the criteria the user has selected.

License

Notifications You must be signed in to change notification settings

PhilC7/password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Generate a random password between 8-128 characters, based on the criteria the user has selected.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published