Skip to main content

A secure password generator using modern standards.

Project description

SecurePassKeyGen

SecurePassKeyGen is a Python library designed to generate secure, random passwords with configurable length and complexity. The library follows best practices for password generation, ensuring high entropy, and providing the user with options to customize the output according to their needs.

Features

  • High Security: Uses cryptographically secure random number generation.
  • Customizable Password Length: Generate passwords of any length from 8 to 128 characters.
  • Character Set Options: Includes options for lowercase, uppercase, digits, and special characters.
  • Password Strength: Default passwords are generated with a high level of entropy.
  • Easy to Use: Simple API to generate passwords.

Installation

To install SecurePassKeyGen, use pip:

pip install securepasskeygen

Usage

To generate a password using SecurePassKeyGen:

from securepasskeygen import generate_password

# Generate a random password with 16 characters
password = generate_password(length=16)

print(password)

Customizing Password Generation

You can customize the password generation by specifying the length and character sets. Here is how you can do that:

from securepasskeygen import generate_password

# Generate a password with the following options:
# - Length of 20 characters
# - Includes lowercase, uppercase, digits, and special characters
password = generate_password(length=20, include_lower=True, include_upper=True, include_digits=True, include_special=True)

print(password)

Parameters

The generate_password function accepts the following parameters:

  • length (int): The desired length of the password (default: 12).
  • include_lower (bool): Whether to include lowercase letters (default: True).
  • include_upper (bool): Whether to include uppercase letters (default: True).
  • include_digits (bool): Whether to include digits (default: True).
  • include_special (bool): Whether to include special characters (default: True).

Example

from securepasskeygen import generate_password

# Example 1: Generate a 12-character password with default settings
password = generate_password()
print(password)

# Example 2: Generate a password of 20 characters with only lowercase and digits
password = generate_password(length=20, include_lower=True, include_digits=True, include_upper=False, include_special=False)
print(password)

Contributing

We welcome contributions to SecurePassKeyGen! If you find bugs, have feature requests, or would like to improve the library, feel free to submit a pull request.

Steps to Contribute:

  1. Fork the repository.
  2. Clone your fork locally.
  3. Make your changes.
  4. Write tests for your changes.
  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

securepasskeygen-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

securepasskeygen-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file securepasskeygen-1.0.0.tar.gz.

File metadata

  • Download URL: securepasskeygen-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for securepasskeygen-1.0.0.tar.gz
Algorithm Hash digest
SHA256 28948e187bc24d3369b9b43ded086b63d7140fdd688b866c6f19d6a72d4b7453
MD5 757e3b18ead5eb2e43bfefeaa518160d
BLAKE2b-256 68a09c2a199002f34be894a906bea08582c63bab1925466728d39a3460dcd974

See more details on using hashes here.

Provenance

The following attestation bundles were made for securepasskeygen-1.0.0.tar.gz:

Publisher: python-publish.yml on holmek/securepasskeygen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file securepasskeygen-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for securepasskeygen-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11b5e8c782bf6c00f941cbe711936bfcba4d9678a765acd4b56e3480967b141c
MD5 26fc3be2c28ebc2c0f226e6532bcc139
BLAKE2b-256 a0ebc5a57575bfaf657e59a5c6bfa42ddce967db8163c59ce67ef3f4802bbb7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for securepasskeygen-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on holmek/securepasskeygen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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