Python toolkit for generating secure passwords and calculating entropy strength.
- Multiple length options from 8 to 128 characters
- Entropy calculation based on information theory
- Control over digit and special character distribution
- Ambiguous character exclusion and sequential repetition blocking
- Generate a password:
python web16.pyPassword: aB3@xK9!mP2$qR7%
- Analyze password strength:
python entropy.py=== Password Entropy Calculator ===
Enter the password to analyze (or 'exit' to quit): MyP@ssw0rd123
Password analysis:
- Length: 13 characters
- Character set size: 88
- Entropy: 84.0 bits
- Strength: Strong
Characteristics:
- Contains lowercase letters: yes
- Contains uppercase letters: yes
- Contains numbers: yes
- Number of digits: 4
- Contains special characters: yes
- Number of special characters: 1
- Customize generation parameters:
pwd = generate_password(
length=16, # Password length
num_digits=3, # Minimum digits
num_special=3 # Minimum special chars
)- Python 3.6+
- Standard library only - no external dependencies required
| File | Length | Use Case |
|---|---|---|
web8.py |
8 chars | Basic accounts |
web16.py |
16 chars | Standard security |
web24.py |
24 chars | Enhanced protection |
web32.py |
32 chars | High security |
web48.py |
48 chars | Critical systems |
web64.py |
64 chars | Maximum security |
web96.py |
96 chars | Cryptographic keys |
web128.py |
128 chars | Enterprise-grade |
entropy.py |
- | Strength analysis |
| Entropy (bits) | Strength | Recommendation |
|---|---|---|
| < 28 | Very Weak | Avoid |
| 28-36 | Weak | Upgrade |
| 36-60 | Reasonable | Use with 2FA |
| 60-128 | Strong | Recommended |
| > 128 | Very Strong | Excellent |
Created by Muller Matos