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.
https://yesmohsen.github.io/Password-Generator/
- 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.
+----------------------------------+
| Password Generator |
| |
| [ ******** generated pw *** ] |
| [ Copy Password ] [↻] |
| |
| [ Password | Passphrase | PIN ] |
| |
| Password Length: 12 [====] |
| |
| [✓] Uppercase [✓] Lowercase |
| [✓] Numbers [✓] Symbols |
+----------------------------------+
- HTML5
- CSS3
- Vanilla JavaScript
crypto.getRandomValues()for secure random character selection
- Push this repository to GitHub.
- Go to your repository on GitHub.
- Click Settings → Pages.
- Under Build and deployment → Source, select Deploy from a branch.
- Choose the
mainbranch and the/(root)folder. - Click Save.
- After a minute or two, your site will be live.
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 browserOr use a simple local server:
python3 -m http.server 8000Then open http://localhost:8000 in your browser.
- 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.
This project is licensed under the MIT License.
Made with ❤️ by Mohsen Entezari
