This application is a random password generator built using HTML, CSS, and JavaScript. It allows users to generate secure passwords of variable length and complexity.
- Adjustable password length using a range input slider.
- Options to include digits, special characters, and mix letter cases.
- Real-time generation of passwords based on user preferences.
- Copy generated password to clipboard with a single click.
- Visual confirmation of password copy operation.
- Open the
index.htmlfile in a web browser. - Adjust the password length using the range input slider.
- Check/uncheck options to include digits, special characters, and mix letter cases as desired.
- The generated password will be displayed in the designated input field.
- Click the "Copy Password" button to copy the generated password to the clipboard.
- A confirmation message will briefly appear to indicate successful copying.
index.html: Contains the structure of the web page, including inputs and buttons.style.css: Provides styling for the UI elements.script.js: Implements the logic for generating passwords and handling user interactions.
To add code to the JavaScript file (script.js):
- Define the character sets for digits, special characters, lowercase letters, and uppercase letters.
- Access DOM elements for password inputs, range inputs, and checkboxes.
- Implement the
generatePasswordfunction to create passwords based on user preferences. - Attach event listeners to handle changes in password length, checkbox states, and copying passwords.
Using the Browser Extension:
Follow these steps to use the Random Password Generator as a browser extension:
- Clone the Repository: Clone or download the repository to your local machine using Git or by downloading the ZIP file.
git clone https://github.com/abdallhfattah/random-password-generator.git- Load the Extension in Browser:
-
For Chrome:
- Open Google Chrome and navigate to
chrome://extensions/. - Enable "Developer mode" by toggling the switch in the top-right corner.
- Click on the "Load unpacked" button.
- Select the directory where you cloned or downloaded the repository.
- Open Google Chrome and navigate to
-
For Firefox:
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox. - Click on "Load Temporary Add-on" or "Load Temporary Add-on..." depending on your Firefox version.
- Select the
manifest.jsonfile from the directory where you cloned or downloaded the repository.
- Open Firefox and navigate to
-
For Brave or Other brave Browsers:
- Open Brave or the respective browser and navigate to
brave://extensions/. - Enable "Developer mode" by toggling the switch in the top-right corner.
- Click on the "Load unpacked" button.
- Select the directory where you cloned or downloaded the repository.
- Open Brave or the respective browser and navigate to
