This is a simple command-line tool written in Python that generates random passwords based on user preferences. The generated passwords meet basic security standards and can include letters, digits, special characters, and custom characters.
- Generates passwords with a minimum length of 8 characters
- Includes at least one letter (uppercase and lowercase)
- Option to include digits
- Option to include special characters
- Option to include custom characters
- Ensures the generated password includes at least one character from each requested character set
-
Make sure you have Python installed on your system. This script was written and tested with Python 3.x.
-
Clone or download this repository to your local machine.
git clone https://github.com/your-username/random-password-generator.git
- Navigate to the directory where you saved the repository:
cd /path/to/random-password-generator
- Run the script:
python password_generator.py
-
Follow the prompts to specify your password requirements:
- Enter the desired password length (minimum 8)
- Choose whether to include digits (y/n)
- Choose whether to include special characters (y/n)
- Enter any additional custom characters to include (leave blank for none)
-
The generated password will be displayed in the console.
Enter the desired password length (minimum 8): 12
Include digits? (y/n): y
Include special characters? (y/n): y
Enter any additional custom characters to include (leave blank for none): @#
Your generated password is: Xt8#@Ky2Lp7Q
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.