A simple Python script to generate random passwords.
- Generates random passwords with a default length of 12 characters.
- Option to include special characters (enabled by default).
Run the script directly to generate a password:
python generator_password.pyThe generate_password function can be imported and used in other scripts:
from generator_password import generate_password
# Generate a default password
print(generate_password())
# Generate a password with specific length and no special characters
print(generate_password(length=16, use_special_chars=False))