An open API service indexing awesome lists of open source software.

https://github.com/fahadelahikhan/securepasswordgenerator-python

A Python script that generates strong, customizable passwords based on user-defined criteria for numbers, letters, and special characters.
https://github.com/fahadelahikhan/securepasswordgenerator-python

automated-password-creation customizable-passwords pass-generator python-password-generator python-project python-security random-password-generator secure-password strong-password-generator

Last synced: 9 months ago
JSON representation

A Python script that generates strong, customizable passwords based on user-defined criteria for numbers, letters, and special characters.

Awesome Lists containing this project

README

          

# Secure Password Generator 🛡️

![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)
![License](https://img.shields.io/badge/license-MIT-green)

A Python implementation of a secure password generator that creates strong, randomized passwords with customizable character sets.

## 📜 About
This project demonstrates how to generate secure passwords using Python's randomization capabilities. It's an educational tool for understanding basic security principles in password creation and helps users create strong passwords that are difficult to crack.

## ✨ Features
- Customizable number of letters, symbols, and numbers
- Random selection from extensive character sets
- Automatic shuffling for maximum entropy
- Easy-to-use command-line interface
- Generates passwords of varying complexity levels

## 🚀 Quick Start

### Installation
1. Clone the repository:
```bash
git clone https://github.com/fahadelahikhan/SecurePasswordGenerator-Python.git
cd SecurePasswordGenerator-Python
```

2. Run the password generator:
```bash
python Password_Generator.py
```

### Basic Usage
```python
# Import the password generator function
from password_generator import generate_password

# Generate a password with 8 letters, 2 symbols, and 2 numbers
password = generate_password(8, 2, 2)
print(password) # Output: Example output: "a3#B7$dE"
```

### Example Password Generation
```python
# Generate a strong password with 12 letters, 4 symbols, and 4 numbers
strong_password = generate_password(12, 4, 4)
print(f"Your secure password: {strong_password}")

# Generate a simple password with 6 letters and 2 numbers
simple_password = generate_password(6, 0, 2)
print(f"Your simple password: {simple_password}")
```

## 📖 How It Works
The password generator works by:
1. Selecting random characters from predefined sets of letters (both uppercase and lowercase), numbers, and symbols
2. Combining these characters based on user-specified quantities
3. Shuffling the resulting character list to ensure maximum randomness
4. Joining the characters into a final password string

The algorithm ensures that each character is randomly selected and that the final password has a good mix of different character types.

## ⚖️ License
Distributed under the MIT License. See [LICENSE](LICENSE) for details.

---

> **Note**: While this password generator creates strong passwords, always follow best security practices. Never share your passwords, use multi-factor authentication when available, and consider using a password manager for optimal security.