Skip to content

Nyx-Off/WebPassCodeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” WebPassCodeGenerator

WebPassCodeGenerator License JavaScript HTML5 CSS3

WebPassCodeGenerator Demo

🎭 A cyberpunk-themed password generator with real-time strength analysis and QR code generation

100% Client-Side β€’ No Installation Required β€’ Works Offline Report Bug β€’ Request Feature


✨ Features

Feature Description
🎲 Secure Generation Cryptographically secure passwords using Web Crypto API
πŸ“Š Real-time Analysis Instant strength calculation with crack time estimation
πŸ“± QR Code Generation Instant QR codes for easy password sharing
🎨 Mr. Robot Theme Cyberpunk aesthetic with glitch effects and matrix rain
πŸ’Ύ Local History Last 10 passwords saved locally (never sent to server)
⚑ 100% Client-Side Everything runs in your browser - no server needed
πŸ”’ Privacy First No data collection, no analytics, no external requests
πŸ“± Responsive Design Works perfectly on desktop, tablet, and mobile

πŸš€ Quick Start

Option 1: Download & Run Locally

# Clone the repository
git clone https://github.com/Nyx-Off/WebPassCodeGenerator.git

# Open in browser
cd WebPassCodeGenerator
open index.html  # macOS
# OR
start index.html # Windows
# OR
xdg-open index.html # Linux

Option 2: Host on Web Server

# Using Python
python -m http.server 8000

# Using PHP
php -S localhost:8000

# Using Node.js (http-server)
npx http-server

That's it! πŸŽ‰ No dependencies to install, no build process, just open and use.

πŸ› οΈ Password Options

Length Control

  • Range: 4-128 characters
  • Default: 16 characters
  • Real-time slider with numeric input sync

Character Sets

  • βœ… Lowercase: a-z (26 characters)
  • βœ… Uppercase: A-Z (26 characters)
  • βœ… Numbers: 0-9 (10 characters)
  • βœ… Symbols: !@#$%^&*()_+-=[]{}|;:,.<>? (28 characters)

Advanced Options

  • 🚫 Exclude Ambiguous: Remove 0O, 1l, I
  • πŸ”€ Begin with Letter: Force first character to be alphabetic
  • ❌ Exclude Custom: Remove any specific characters

Strength Indicators

Strength Score Entropy Crack Time Color
πŸ”΄ Weak < 30 < 28 bits Instant - Hours Red
🟑 Fair 30-50 28-36 bits Days - Months Orange
🟣 Good 50-70 36-60 bits Years - Centuries Purple
🟒 Strong > 70 > 60 bits Millennia+ Green

πŸ“ Project Structure

WebPassCodeGenerator/
β”œβ”€β”€ πŸ“„ index.html              # Main application
β”œβ”€β”€ πŸ“ assets/
β”‚   β”œβ”€β”€ πŸ“ css/
β”‚   β”‚   β”œβ”€β”€ main.css          # Core styles & variables
β”‚   β”‚   β”œβ”€β”€ animations.css    # Glitch, matrix rain, effects
β”‚   β”‚   └── components.css    # UI components
β”‚   └── πŸ“ js/
β”‚       β”œβ”€β”€ app.js            # Main application controller
β”‚       β”œβ”€β”€ password-generator.js  # Crypto generation engine
β”‚       β”œβ”€β”€ strength-calculator.js # Strength & entropy analysis
β”‚       └── ui-controller.js      # UI state management
β”œβ”€β”€ πŸ“„ LICENSE                # MIT License
└── πŸ“„ README.md             # This file

Optional Files (Not Required)

  • api/ - PHP backend (QR codes work without this)
  • includes/ - PHP config (not needed)
  • install.php - Installer (not needed)
  • .htaccess - Apache config (optional)

πŸ”§ Technical Details

Security Features

  • βœ… Cryptographically Secure: Uses crypto.getRandomValues()
  • βœ… No Network Requests: 100% offline capable
  • βœ… No External Dependencies: Pure vanilla JavaScript
  • βœ… Memory Safe: Passwords cleared from memory after use
  • βœ… XSS Protected: All inputs sanitized

Browser Compatibility

Browser Minimum Version Tested
Chrome 60+ βœ…
Firefox 53+ βœ…
Safari 11+ βœ…
Edge 79+ βœ…
Opera 47+ βœ…

Performance Metrics

  • ⚑ Initial Load: < 100ms
  • ⚑ Password Generation: < 1ms
  • ⚑ QR Generation: < 50ms
  • πŸ“¦ Total Size: ~50KB (excluding fonts)
  • 🎯 Lighthouse Score: 100/100

🎨 Customization

Change Theme Colors

Edit CSS variables in assets/css/main.css:

:root {
    --color-accent: #9b59b6;        /* Main purple */
    --color-accent-dark: #6c3483;   /* Dark purple */
    --color-accent-light: #bb8fce;  /* Light purple */
    --color-success: #27ae60;       /* Green */
    --color-warning: #f39c12;       /* Orange */
    --color-danger: #e74c3c;        /* Red */
}

Modify Character Sets

Edit assets/js/password-generator.js:

this.charsets = {
    lowercase: 'abcdefghijklmnopqrstuvwxyz',
    uppercase: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
    numbers: '0123456789',
    symbols: '!@#$%^&*()_+-=[]{}|;:,.<>?',
    // Add custom sets:
    custom: 'àéèΓͺëñç'  // Example: accented characters
};

Adjust Animation Speed

Edit timing in assets/css/animations.css:

/* Glitch effect speed */
.glitch { animation: glitch 1s infinite; }

/* Matrix rain speed */
setInterval(draw, 35); // in app.js

πŸ’» Keyboard Shortcuts

Shortcut Action
Ctrl/Cmd + G Generate new password
Ctrl/Cmd + C Copy current password

🎯 Use Cases

  • Personal Security: Generate strong passwords for personal accounts
  • Development: Create secure API keys and tokens
  • System Administration: Generate root passwords and service accounts
  • Team Sharing: QR codes for secure password distribution
  • Offline Environments: Works without internet connection

🀝 Contributing

Contributions make the open source community amazing! Any contributions are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Guidelines

  • Keep it client-side only
  • Maintain the cyberpunk aesthetic
  • Ensure mobile responsiveness
  • Write clean, commented code
  • Test across browsers

πŸ“ License

Distributed under the MIT License. See LICENSE for more information.

πŸ‘€ Author

Samy - Nyx

πŸ™ Acknowledgments

πŸ“Š Stats

GitHub stars GitHub forks GitHub watchers GitHub last commit GitHub issues

πŸ”’ Security

  • No Data Collection: We don't track, store, or transmit any data
  • Local Storage Only: History saved in browser's localStorage
  • Open Source: Audit the code yourself
  • Report Security Issues: Create a private security advisory

πŸš€ Roadmap

  • PWA support for offline mobile use
  • Browser extension version
  • Additional themes (Matrix, Tron, Blade Runner)
  • Password strength tips
  • Passphrase generation mode
  • Export/Import password history
  • Multi-language support

🎭 Stay Safe, Stay Secure 🎭

Made with πŸ’œ and β˜• by Samy - Nyx

If you like this project, please ⭐ star it!


⬆ back to top

About

A cyberpunk-themed password generator with real-time strength analysis and QR code generation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published