Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Password Generator

A clean, fast, and mobile-friendly password generator built for GitHub Pages. Generate secure passwords with full control over length and character types — all directly in your browser.

🚀 Live Demo

https://yesmohsen.github.io/Password-Generator/

Password Generator Screenshot

✨ Features

  • Dark Mode Theme — easy on the eyes with a modern dark UI.
  • Instant Password Generation — updates automatically when you change settings.
  • Three Modes — switch between:
    • Password — random characters with full control.
    • Passphrase — memorable word-based passphrases (e.g. Swift-Tiger-Maple-Jacket).
    • PIN — digits-only numeric PINs.
  • Password Length — choose any length from 1 to 50 characters (default is 12).
  • Passphrase Options — choose word count (3–12), separator (Hyphen / Space / Dot / Underscore), capitalize words, and append a random 2-digit number.
  • PIN Length — choose any length from 4 to 16 digits (default is 6).
  • Character Options — toggle:
    • Uppercase letters (A–Z)
    • Lowercase letters (a–z)
    • Numbers (0–9)
    • Symbols (!@#$%^&*()_+-=[]{}|;:,.<>?)
  • All options enabled by default — ready to use immediately.
  • Strength Meter — live strength feedback (based on entropy for passphrases and PINs).
  • Copy Password Button — one-click copy with visual feedback.
  • Regenerate Button — refresh icon to instantly create a new password.
  • Mobile Responsive — works smoothly on phones, tablets, and desktops.
  • 100% Client-Side — no data is sent to any server.

📱 Preview

+----------------------------------+
|  Password Generator              |
|                                  |
|  [ ******** generated pw *** ]   |
|  [ Copy Password ]  [↻]          |
|                                  |
|  [ Password | Passphrase | PIN ] |
|                                  |
|  Password Length: 12  [====]     |
|                                  |
|  [✓] Uppercase  [✓] Lowercase   |
|  [✓] Numbers    [✓] Symbols     |
+----------------------------------+

🛠️ Technologies Used

  • HTML5
  • CSS3
  • Vanilla JavaScript
  • crypto.getRandomValues() for secure random character selection

📦 How to Deploy on GitHub Pages

  1. Push this repository to GitHub.
  2. Go to your repository on GitHub.
  3. Click Settings → Pages.
  4. Under Build and deployment → Source, select Deploy from a branch.
  5. Choose the main branch and the /(root) folder.
  6. Click Save.
  7. After a minute or two, your site will be live.

🧰 How to Use Locally

No build tools or dependencies are required.

git clone https://github.com/Yesmohsen/Password-Generator.git
cd Password-Generator
# Open index.html in your favorite browser

Or use a simple local server:

python3 -m http.server 8000

Then open http://localhost:8000 in your browser.

🔒 Privacy & Security

  • Passwords are generated locally in your browser.
  • Nothing is stored, tracked, or transmitted over the internet.
  • Uses the browser's built-in cryptographically secure random number generator.

📝 License

This project is licensed under the MIT License.


Made with ❤️ by Mohsen Entezari

About

Simple, secure, and responsive password generator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages