This is a React-based Password Generator application built with Vite. The application allows users to generate secure passwords with customizable options such as length, inclusion of uppercase letters, lowercase letters, numbers, and symbols. It also evaluates the strength of the generated password and provides visual feedback.
- Generate secure passwords with customizable options:
- Include uppercase letters
- Include lowercase letters
- Include numbers
- Include symbols
- Adjustable password length (5 to 50 characters)
- Password strength evaluation with visual indicators:
- Very Weak, Weak, Good, Strong, Very Strong
- Copy generated password to clipboard with a single click.
- Responsive and modern UI with dark mode support.
This project uses the following technologies and tools:
- React: Frontend library for building user interfaces.
- Vite: Fast build tool for modern web projects.
- Tailwind CSS: Utility-first CSS framework for styling.
- ESLint: Linting tool for maintaining code quality.
- Prettier: Code formatter with Tailwind CSS plugin.
src/
├── App.jsx # Main application component
├── App.css # Global styles
├── PasswordGenerator.jsx # Password generator component
├── components/
│ ├── Alert.jsx # Alert component for notifications
│ ├── CopyButton.jsx # Button to copy text to clipboard
├── context/
│ ├── AlertContext.jsx # Context for managing alerts
├── assets/ # Static assets (e.g., images)
├── index.css # Tailwind CSS setup
├── main.jsx # Application entry point
-
Clone the repository:
git clone https://github.com/MrAkbari91/password-generator.git cd password-generator
-
Install dependencies:
-
Using npm:
npm install
-
Using Bun:
bun install
-
Using Yarn:
yarn install
-
-
Start the development server:
-
Using npm:
npm run dev
-
Using Bun:
bun run dev
-
Using Yarn:
yarn dev
-
-
Open the application in your browser at
http://localhost:5173
.
-
Start the development server:
npm run dev
/bun run dev
/yarn dev
-
Build the project for production:
npm run build
/bun run build
/yarn build
-
Preview the production build:
npm run preview
/bun run preview
/yarn preview
-
Run ESLint to check for code quality issues:
npm run lint
/bun run lint
/yarn lint
You can customize the password generation logic in the PasswordGenerator.jsx
component. The password strength evaluation logic is also implemented in the same file.
- Add user authentication for saving password preferences.
- Implement a password history feature.
- Add more advanced password strength evaluation criteria.
This project is licensed under the MIT License. Feel free to use and modify it as needed.