A Python-based password generator that creates secure random passwords using customizable length and character combinations.
This project is designed to help users generate strong passwords using uppercase letters, lowercase letters, numbers, and special characters.
- Secure Password Generation – Uses Python's
secretsmodule for cryptographically secure random generation. - Custom Password Length – Generate passwords with a length of 1–128 characters.
- Uppercase Letters – Include uppercase characters (A-Z).
- Lowercase Letters – Include lowercase characters (a-z).
- Numbers – Include numeric characters (0-9).
- Special Characters – Include symbols such as @, #, $, and %.
- Input Validation – Handles invalid inputs and password configurations.
- Python 3
- secrets
- string
- Python 3.10 or later.
- Windows or Linux operating system.
-
Clone this repository:
git clone https://github.com/pradipta-web/python-password-generator.git
-
Navigate to the project directory:
cd python-password-generator -
Run the application:
Windows:
py main.py
Linux:
python3 main.py
- Run the Python application.
- Enter your desired password length.
- Choose which character types to include.
- The application will generate a random password.
- Copy the generated password and store it securely.
=============================================
PYTHON PASSWORD GENERATOR
=============================================
Enter password length: 16
Include uppercase? (y/n): y
Include lowercase? (y/n): y
Include numbers? (y/n): y
Include symbols? (y/n): y
=============================================
GENERATED PASSWORD:
=============================================
aB7@kP9#mX2$vL5q
Password Length: 16
Password Status: Generated Successfully
=============================================
Note: The generated password above is only an example.
This project helps improve practical knowledge of:
- Python programming.
- Random password generation.
- Cryptographically secure randomization.
- Python Standard Library.
- Input validation.
- Basic application development.
- Generated passwords should be stored securely.
- Avoid reusing the same password across multiple accounts.
- Never share your passwords with others.
Kinervaaa
GitHub: @pradipta-web
Built to explore Python programming and password security.