This app required me to ask a user to pick several criteria as well as a length to generate a random strong password. The password is then displayed in the text box.
The app works by building an array of possible password character choices based on which checkboxes the user has selected. There are four possible arrays that will be added to the larger array based on user input. If the user has selected none of the checkboxes, they are informed that they must select at least one checkbox in order to build a password. Once the array of possible characters has been built, the length of the password that the user selected is checked. The length field is set to not go below 8 or above 128 using the input buttons, however if the user manually types a number that is outside of this range they are notified that the length must be within range. Once all of these criteria are met, a function runs to generate a random password based on the length and characters chosen by the user.
A link to the live version of this app can be found below. Random Password Generator
Copyright 2020, Jesse O'Donoghue
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CSS Tricks
W3Schools
Traversy Media
Also a big thank you to all of my instructors and classmates whose advice and assistance made this project what it is!