This project has been converted into a browser extension while maintaining the original web application functionality.
- 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
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
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository
- Install dependencies:
npm install
Run the original web application for development:
npm run devnpm run build:extensionThis will:
- Build the React components for the extension
- Copy necessary files to
extension-build/folder - Prepare the extension for loading in Chrome
- Run
npm run build:extension - Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
extension-buildfolder - The extension will appear in your toolbar!
The extension uses a completely redesigned UI optimized for the popup format:
- 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
- Primary:
#667eeato#764ba2(gradient) - Success:
#48bb78(copy confirmation) - Background: White with subtle gray sections
- Text: Various shades of gray for hierarchy
npm run dev- Start development server for web appnpm run build- Build web applicationnpm run lint- Run ESLint
The extension requests minimal permissions:
clipboardWrite- To copy passwords to clipboard
The extension uses a strict CSP for security:
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
}The extension includes an SVG icon source. To complete the setup:
- Navigate to the
icons/folder - Follow the instructions in
icons/README.mdto create PNG icons - Required sizes: 16x16, 32x32, 48x48, 128x128
- 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
- β Chrome (Manifest V3)
- β Edge (Chromium-based)
- β Other Chromium browsers
- β Firefox (may need manifest adjustments)
Contributions, issues, and feature requests are welcome!
Enjoy your new Password Generator Browser Extension! πβ¨
