Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🔐 Python Password Generator

A command-line password generator with customizable options and strength checker. Built with Python 3 — no external dependencies needed.

✨ Features

  • Generate random passwords (8-50 characters)
  • Customize character types: uppercase, numbers, symbols
  • Password strength checker (Weak/Medium/Strong)
  • Generate multiple passwords at once
  • Interactive menu-driven interface
  • Guaranteed character variety in every password

🚀 How to Run

# Make sure Python 3.8+ is installed
python --version

# Clone this repository
git clone https://github.com/YOUR-USERNAME/python-password-generator.git
cd python-password-generator

# Run the program
python password_generator.py

📸 Sample Output

==================================================
  🔐 PYTHON PASSWORD GENERATOR
  Beginnersly.com — Python Projects
==================================================

📋 Menu:
  1. Generate Password
  2. Check Password Strength
  3. Generate Multiple Passwords
  4. Exit

Enter choice (1-4): 1
Password length (8-50, default 12): 16
Include uppercase? (y/n, default y): y
Include numbers? (y/n, default y): y
Include symbols? (y/n, default y): y

🔑 Generated Password: K#9mZp$2xR&wL4nQ
📊 Strength: ✅ STRONG (7/7)
📏 Length: 16 characters

🧠 Concepts Used

  • random module — generating random characters
  • string module — character sets (ascii_letters, digits, punctuation)
  • Functions with default parameters
  • List comprehensions
  • Input validation and error handling
  • While loop for menu system

📁 Project Structure

python-password-generator/
├── password_generator.py   # Main source code
├── README.md               # This file
├── .gitignore              # Git ignore rules
└── LICENSE                 # MIT License

🔧 Requirements

  • Python 3.8 or higher
  • No external packages needed (uses only built-in modules)

💡 Ideas to Extend

  • Add copy-to-clipboard (using pyperclip)
  • Build GUI version with Tkinter
  • Add password history (encrypted storage)
  • Add pronounceable password mode
  • Add passphrase generator ("correct-horse-battery-staple")

📚 Tutorial

Full step-by-step tutorial with explanation: Beginnersly.com — Password Generator

📄 License

MIT License — free to use, modify, and share.

About

Python password generator with strength checker — beginner project

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages