This is a simple web app built using React that generates random passwords based on user preferences. It allows users to specify the length of the password and choose whether to include numbers and special characters.
You can visit the live website here.
- Clone the repository:
git clone https://github.com/alpharsh/passwordgenerator.git - Navigate to the project directory:
cd passwordgenerator - Install the dependencies:
npm install
- Start the development server:
npm run dev - Open your browser and visit
http://localhost:5173 - Use the range slider to specify the length of the password.
- Check the "Numbers" checkbox to include numbers in the password.
- Check the "Characters" checkbox to include special characters in the password.
- The generated password will be displayed in the input field.
- Click the "Copy" button to copy the password to the clipboard.
- React functional components
- State management with
useState - Side effects with
useEffect - Refs with
useRef - Callback functions with
useCallback