Generate Random password
Project description
PyGeneratePassword is a Python package that provides a simple tool to generate random passwords with customizable parameters. You can easily create secure passwords for various applications and scenarios.
Installation
You can install PyGeneratePassword using pip, the Python package manager. Open your terminal or command prompt and run the following command:
pip install PyGeneratePassword
Usage
from PyGeneratePassword import PasswordGenerate
# Generate a random password with default settings
password = PasswordGenerate()
print("Generated Password:", password)
# Generate a password with custom settings (e.g., length and character set)
custom_password = PasswordGenerate(length=16, use_digits=True, use_special_chars=True)
print("Custom Password:", custom_password)
Output
The above usage example will produce output similar to the following:
Generated Password: W!lA0$qVnS7C
Custom Password: ZS4jB9$+xQvH6D!2
Options
The PasswordGenerate class supports the following options:
length (default is 12): Specify the length of the generated password.
use_digits (default is True): Include digits (0-9) in the password.
use_special_chars (default is True): Include special characters in the password.
You can customize these options to create passwords that meet your specific requirements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PyGeneratePassword-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a1fa11ae2385769c1bbefa87ea5444e62b220c3a9b45ca656daaed9cd836a9 |
|
MD5 | 707d56f730ccb84c1e1ca9c1d8327c73 |
|
BLAKE2b-256 | 632de4086ea4633e077f32131d1bbb5f7955b530cbe029116b417f12d0321c42 |