https://github.com/wonjong2/week3_password_generator
https://github.com/wonjong2/week3_password_generator
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wonjong2/week3_password_generator
- Owner: wonjong2
- Created: 2022-03-03T17:54:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-14T17:32:43.000Z (about 4 years ago)
- Last Synced: 2025-01-09T10:18:53.828Z (over 1 year ago)
- Language: JavaScript
- Size: 214 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Week3_Password_Generator
## Description
This Web site generates a password to suggest user.
When user clicks "Generate Password" button, it asks user about some questions such as 'how many characters in a password' and 'what types of characters should be included in it'.
After user answers these questions, a new password which is generated based on user's answer will appear on the screen.
- Use 'Prompt box' and 'Confirm box' to get input from user.
- Store user inputs to 'passwordPolicy' array.
- Use 'while' and 'do while' loop to validate user inputs and ask again.
- Define arrays have alphabet(lowercase and uppercase) characters and special characters to pick up while the web site is creating a new password.
- Create 'generateRandomChar' function to determine a single random character.
- Use 'Math.floor' and 'Math.random' to generate a random value to determine the type of character and select one random character from the determined character type.
## Web Site's URL
- Password Generator :
https://wonjong2.github.io/Week3_Password_Generator/
## Git Hub URL for this Web Site
- wonjong2/Week3_Password_Generator : https://github.com/wonjong2/Week3_Password_Generator
## Usage
- User clicks "Generate Passworkd" button to have a new password.
- If user inputs the number not in the valid range(8~128), the web site asks user it again until user inputs valid number.
- If user doesn't select any character types, the web site asks user them again until user selects at least one character type.
- When all inputs from user are validated, the web site generates a new password and display it on the screen.
- __Simple Demo__ : https://watch.screencastify.com/v/ImMADFavFRHkFsOV2UiU
Please see the screenshots on this Website.
- The first screen when user opens this web site.

- User needs to answer serveral questions. Please see the validation flow of the user inputs.

- A new password shown on the screen.

## License
MIT License
Copyright (c) [2022] [Wonjong Park]
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.