Skip to content

Strong Password Generator – πŸ”’ Chrome extension to generate strong, random passwords with customizable length, numbers, and symbols. Instantly copy passwords to your clipboard and enhance your online security effortlessly. πŸš€

Notifications You must be signed in to change notification settings

hellman53/Strong-Password-Generator

Repository files navigation

Password Generator Browser Extension

This project has been converted into a browser extension while maintaining the original web application functionality.

🌟 Features

  • Secure Password Generation: Generate strong, cryptographically secure passwords
  • Customizable Length: Choose password length from 4 to 50 characters
  • Character Options: Include/exclude numbers and special symbols
  • One-Click Copy: Copy generated passwords to clipboard instantly
  • Browser Extension: Use directly from your browser toolbar
  • Clean UI: Modern, responsive design optimized for extension popup

πŸ“Έ Screenshots

Preview

πŸ“ Project Structure

Password_Generator/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.jsx              # Original web app component
β”‚   β”œβ”€β”€ App.css              # Original web app styling
β”‚   β”œβ”€β”€ index.css            # Tailwind CSS imports
β”‚   └── main.jsx             # Web app entry point
β”œβ”€β”€ manifest.json            # Extension manifest
β”œβ”€β”€ popup.html               # Extension popup HTML
β”œβ”€β”€ index.html               # Original web app HTML
└── package.json             # Dependencies and scripts

πŸš€ Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install

πŸ› οΈ Development

Web Application

Run the original web application for development:

npm run dev

Browser Extension

Build the Extension

npm run build:extension

This will:

  1. Build the React components for the extension
  2. Copy necessary files to extension-build/ folder
  3. Prepare the extension for loading in Chrome

Load Extension in Chrome

  1. Run npm run build:extension
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" (toggle in top right)
  4. Click "Load unpacked"
  5. Select the extension-build folder
  6. The extension will appear in your toolbar!

🎨 Styling Changes for Extension

The extension uses a completely redesigned UI optimized for the popup format:

Key Design Changes:

  • Compact Layout: 340x480px popup window
  • Modern Gradient: Purple-blue gradient header and buttons
  • Card-based Design: Clean white background with subtle shadows
  • Improved Typography: Better font hierarchy and spacing
  • Enhanced UX: Visual feedback for copying, hover effects
  • Monospace Password Display: Better readability for generated passwords

Color Palette:

  • Primary: #667eea to #764ba2 (gradient)
  • Success: #48bb78 (copy confirmation)
  • Background: White with subtle gray sections
  • Text: Various shades of gray for hierarchy

πŸ“¦ Build Scripts

  • npm run dev - Start development server for web app
  • npm run build - Build web application
  • npm run lint - Run ESLint

πŸ”§ Configuration

Extension Permissions

The extension requests minimal permissions:

  • clipboardWrite - To copy passwords to clipboard

Content Security Policy

The extension uses a strict CSP for security:

"content_security_policy": {
  "extension_pages": "script-src 'self'; object-src 'self'"
}

πŸ–ΌοΈ Icons

The extension includes an SVG icon source. To complete the setup:

  1. Navigate to the icons/ folder
  2. Follow the instructions in icons/README.md to create PNG icons
  3. Required sizes: 16x16, 32x32, 48x48, 128x128

πŸ”’ Security Features

  • No External Requests: All generation happens locally
  • Secure Random Generation: Uses Math.random() for character selection
  • No Data Storage: Passwords are not stored anywhere
  • Minimal Permissions: Only requests clipboard access

πŸ“± Browser Compatibility

  • βœ… Chrome (Manifest V3)
  • βœ… Edge (Chromium-based)
  • βœ… Other Chromium browsers
  • ❓ Firefox (may need manifest adjustments)

🀝 Contributing

Contributions, issues, and feature requests are welcome!


Enjoy your new Password Generator Browser Extension! πŸ”βœ¨

About

Strong Password Generator – πŸ”’ Chrome extension to generate strong, random passwords with customizable length, numbers, and symbols. Instantly copy passwords to your clipboard and enhance your online security effortlessly. πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published