Skip to content

khyan22/password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator Starter Code

Summary

This is a password generator that takes inputs from the user to make a custom password based on number of characters between 8 and 128 and what types of characters the user wants in the password.

Technologies

  • HTML - 12.0%
  • css - 25.8%
  • JavaScript - 62.2%

Code Breakdown

The code starts off by asking the user with a "window.prompt" what length they wanted the code to be (if the user doesn't input a value between 8 and 128 they'll be kept in a "while" loop until they do) and then proceeds to show the user confirmation windows where they can choose a combination of uppercase, lowercase, numbers, and special characters. After the user chooses what characters they want in their password a series of "if" and "else if" triggers that have functions nested inside of them that runs math to determine which characters from the string get chosen and a return statement sends the character back to the "randomChar()" function. And then an "else" statement with a "for" loop keeps adding the "randomChar" values into the "randomPassword" variable until it reaches the number of characters that the user inputted into the "window.prompt". once the password is created its sent into the "writePassword()" function where its inserted into the "passwordText.value" and shown to the user.

Active Page

https://khyan22.github.io/password-generator/

Page ScreenShot

screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors