Description
With the use of Java script Generates a Random Passwords with characters types specified by the user.
User can select which characters to include UpperCase, LowerCase, Numbers and/or Special Characters. User also selects the length of your password, the password length can be any number between 8 and 128 characters.
When the user presses the generate password button a window prompt will pop up requetsing the number of characters they want in password.
Length needs to be between 8 to 128 characters, if out side this criteria Invalid prompt pop up and they will be returned to generate password button.
The user is than required to answer 4 Yes (ok) or No (cancel) questions by folllowiong the window prompts to confirm characters rto use in genertaing password.Uppercase/Lowercase letters, Numbers or Symbols
If no character type selected INVALID prompt appears and user returned to genrate password page again.
If user meets password length criteria and has selected at least one type of character catergoty to include, random password generated based on the users requests.
Returned to main page and random password generated and displayed.
The new password is generate by creating a new variable in Javascript that includes all the characters the users selected they want in the password. With the help of Math.random() a random character from the variable containg all possible characters that meet the users specifications is selected. The random character selection is looped by the number of times required to match user specified password length.
Link
https://geezee91.github.io/03-JavaScript-Password-Generator/