Skip to content

Shanik-codes/Password_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password_Generator

Making a random Password Generator

I was given the index.html and the style.css file. My job was to make the generator work by using Javascript

This is how the generator looks like

Image description

How does it work

When clicking the Generate Password button there is series of questions that you are going to be asked.

For example:

  • How many characters do you want the password to have? The characters must be between 8 and 120.
  • Do you want lowercase letters?
  • Do you want uppercase letters?
  • Do you want numbers?

Then I created If statements to know what kind of characters does the user want to use; like numbers, symbols, lowercase and uppercase.

If they agreed to some or all the password will include all or some of the characters chosen.

Then I did a for loop, with Math.floor(Math.random) that way all the characters and numbers will be chosen at random. Also added a return for the password to show up on the screen.

Image description

About

Making a Password Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published