This repository contains a simple yet customizable password generator application developed using Python and the ttkbootstrap library. The application generates random passwords based on user-selected criteria, such as password length and character types (symbols, numbers, lowercase and uppercase letters).
- User-friendly GUI
- Customizable password length
- Options to include/exclude:
- Symbols (e.g., @#$%)
- Numbers (e.g., 123456)
- Lowercase letters (e.g., abcdefgh)
- Uppercase letters (e.g., ABCDEFGH)
-
Clone the repository:
git clone https://github.com/username/password-generator.git
-
Change to the project directory:
cd password-generator
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On Linux or macOS:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python main.py
-
Adjust the password criteria using the available options in the GUI.
-
Click the "Generate Password" button to generate a random password based on the selected criteria.
-
The generated password will be displayed in the "Generated Password" label.
main.py
: The main entry point of the application.config.py
: Contains global configuration variables, such as window dimensions.helpers/controller.py
: Contains theController
class, which manages interactions between the GUI and the password generator.helpers/gui.py
: Contains theApp
class, which represents the GUI for the password generator.helpers/password_generator.py
: Contains thePasswordGenerator
class, which generates random passwords based on the user's selected criteria.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.