Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyGeneratePassword-0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyGeneratePassword-0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file PyGeneratePassword-0.1.tar.gz.

File metadata

  • Download URL: PyGeneratePassword-0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for PyGeneratePassword-0.1.tar.gz
Algorithm Hash digest
SHA256 e354554d714799fe82df986b102c64fc9faa56b2f103f591faa1f27a2917dd0b
MD5 04e645d1b844a64708aa943cf43a7ef3
BLAKE2b-256 ca7e4befc3838e111ed6e648bb80419ce138694d08ba912742739b478b3fdbf3

See more details on using hashes here.

File details

Details for the file PyGeneratePassword-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for PyGeneratePassword-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93a1fa11ae2385769c1bbefa87ea5444e62b220c3a9b45ca656daaed9cd836a9
MD5 707d56f730ccb84c1e1ca9c1d8327c73
BLAKE2b-256 632de4086ea4633e077f32131d1bbb5f7955b530cbe029116b417f12d0321c42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page