Skip to content

Relishablez/PassGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Password Generator

Why did I make this?

I made this as a personal project for password complexity - currently using Math see below for Strength Assessment) but might revisit to use Crytographic techniques (CSPRNGs) however crypto.getRandomValue() has some exploitable vulnerabilities.
Inspiration is from: Password Generator

Introduction

This project introduces a customizable password generator built with JavaScript. It allows users to create strong, secure passwords tailored to their preferences, including options for length, and the inclusion of uppercase and lowercase letters, numbers, and symbols.

Visit the Live Demo

Features

  • Generate Password: Clicking the 'Generate Password' button creates a new password based on selected criteria.
  • Copy to Clipboard: Users can copy the generated password to the clipboard with a single click.
  • Adjust Password Length: Increase or decrease the password length using the dedicated buttons.
  • Password Strength Indicator: Provides a visual and textual indication of the password's strength based on length and character complexity.

How to Use

  1. Set Preferences: Choose your desired password length and tick the checkboxes for uppercase, lowercase, numbers, and symbols as needed.
  2. Generate Password: Click the 'Generate Password' button to create a new password.
  3. Copy Password: Click 'Copy to Clipboard' to copy the generated password.
  4. Adjust Length: Use 'Increase Length' and 'Decrease Length' buttons to change the password length.

Password Strength Assessment

The password strength is assessed based on length and character complexity:

  • Length: Stronger passwords are longer.
  • Character Types: A mix of uppercase, lowercase, numbers, and symbols enhances strength.
  • Additional Checks: Consecutive non-alphanumeric characters, digits, and letters are considered.

Installation

To use this password generator locally, simply include the JavaScript file in your HTML and link the necessary elements (buttons, display areas) as per the provided IDs. Alternatively, download all necessary files (CSS, JS, HTML) and put them in 1 folder then run the .HTML file.

📜 License

MIT License

About

Password generator with rough strength calculation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published