Giter Club home page Giter Club logo

javasscript-password-generator-with-selectable-options's Introduction

Generate Random Password

live URL: https://rubinod1.github.io/JavasScript-password-generator-with-selectable-options/ Git repository: https://github.com/RubinoD1/JavasScript-password-generator-with-selectable-options

WHEN I click the button to generate a password

  • Created a function "generatePassword", that is linked to an event listener that triggers on the user clicking the "generate" button on the webpage.

I am presented with a series of prompts for password criteria

  • The user is first asked to choose a password length. The password must have a minimum of 8 characters and has a maximum of 128 characters. If within this range, the user is presented with an alert confirming their choice. If not, they are re-notified of the password length parameters and asked again to enter a password length.
  • Once a valid password length has been chosen; the user is given a series of prompts as to what characters they wish to use in their password. Lowercase, uppercase, numbers, and special characters have been made into selectable options to be used in the password generator. Alerts have been set for each selection made to notify the user of their choice.
  • If no options are selected for use in the password, the user is notified that at least on option must be selected to generate a password.

When all prompts are answered then a password is generated that matches the selected criteria

  • If an option is chosen (lowercase, uppercase, number, special characters), then that choice is given its character set that is then used when the password is generated. If an option is not selected, a empty string "" is given as its character set. Once at least one character set is selected to be used in the password generator, then password is created.

The password is either displayed in an alert or written to the page

  • The password is written on the webpage once the user successfully defines the password's parameters.

Images: Live site screenshots

Live site screenshots

javasscript-password-generator-with-selectable-options's People

Contributors

rubinod1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.