A Python application for generating secure passwords using Object-Oriented Programming (OOP) and Abstract Base Classes (ABC). This project demonstrates inheritance, abstraction, and polymorphism by implementing multiple password generator classes.
- Generate numeric passwords
- Generate alphabetic passwords
- Generate alphanumeric (mixed) passwords
- Custom password length
- Object-Oriented Programming (OOP)
- Abstract Base Class (ABC) implementation
- Simple and easy-to-understand project structure
- Python 3
- Object-Oriented Programming (OOP)
- Abstract Base Classes (
abc) randomstring
PasswordGenerator/
│
├── main.py
├── README.md
├── requirements.txt
└── .gitignore
Clone the repository:
git clone https://github.com/your-username/PasswordGenerator.gitNavigate to the project folder:
cd PasswordGeneratorNo external dependencies are required.
Run the application:
python main.pyThe program generates three different passwords:
- Numeric password
- Letter-only password
- Mixed password (letters and numbers)
48291
gKdPw
H7sP2
Output will be different each time because the passwords are generated randomly.
Password (Abstract)
│
┌──────────┼──────────┐
│ │ │
NumberPassword LetterPassword MixedPassword
Each subclass implements its own version of the generate_password() method.
- Add special characters support
- Password strength checker
- Command-line arguments
- Interactive user input
- GUI version using Tkinter or PyQt
- Save generated passwords to a file
This project is licensed under the MIT License.
Feel free to use, modify, and improve this project for learning purposes.