I wanted to create an application that can generate a random password based on criteria the user will select there will be five main critera;
- Password must be atleast 8 characters long, but not to exceed 128, and it also must be ABLE to, but not HAVE to include;
- Upper Characters,
- Lower Characters,
- Special Characters,
- and lastly Numbers.
This app will be browser reliant, consist of bare bones HTML, as it will be dynamically updated via JavaScript, and of course CSS. Ofcousre it will be mobile friendly and have a polished finish.
The user is promted to choose the Character Lenght from the start, and if the user input is outside the give parameters they are alereted of that fact and must restart.
Once that is validated the user then goes through a series of four promts asking bolean questions regarding their prefrence on the variety of Characters and Numbers they would like in thier new password.
Again, once that is valadated, a loop runs through all thier selections and randomly picks whatever Characters they chose and displays it in the black box in the middle of the screen.
I built in a handy little 'COPY' button that will copy the displayed Password to your clipboard for you.
Initialy, I built this in a hurry and not fully understanding how to accomplish it, then went back once I fully understood and finished it. There will be screenshots of both versions.
Browser Based
I am especialy proud of the Copy function:
`function copyPassword() { var copyText = document.querySelector("#password"); copyText.select(); document.execCommand("copy"); }
copyBtn.addEventListener("click", copyPassword);`
Project is: finished.
Malgorzata Rita : for providing this awsome readme format! @flynerdpl
Dane Shrewsbury : for being a mentor and helping with some last minute JavaScript bugs.
choffman541@gmail.com feel free to contact me.