A simple command-line password generator written in Python. This project was created as part of my Python Programming internship at Oasis Infobyte.
- User chooses password length
- User selects which character sets to include (letters, numbers, symbols)
- Input validation for length and character set selection
- Random password generation
- Ensures at least one character from each selected set
- Run the script:
python "Random Password Generator.py"
- Enter your desired password length (minimum 4).
- Choose which character sets to include by answering the prompts (y/n).
- The generated password will be displayed on the screen.
==============================
Random Password Generator
==============================
Enter desired password length (minimum 4): 10
Include letters? (y/n): y
Include numbers? (y/n): y
Include symbols? (y/n): n
Your generated password is: 8k2Jv1QwZp
Keep it safe and do not share it with others!
- How to use Python's built-in
random
andstring
modules - Validating user input and handling errors
- Building a user-friendly command-line interface
- Ensuring password security by including at least one character from each selected set
- Writing clean, commented, and readable code
This project is for educational purposes as part of my internship at Oasis Infobyte.
- Python 3.x
- Ensure you have Python installed on your system. You can download it from python.org.
- Clone or download this repository.
- Navigate to the project directory in your terminal or command prompt.
- Run the script using Python:
python "Random Password Generator.py"
- Add password strength checking.
- Implement an option to save generated passwords (with appropriate security warnings).
- Add a graphical user interface (GUI) for a more user-friendly experience.