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.2.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.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: securepasskeygen-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 18267d539d285061257cc51560938b7a4284f57fbbdb9a9c3bcb3625c2ca3a89
MD5 0884c117073b1c6bf4cba5d5779cae5b
BLAKE2b-256 2f40a102fe766c7efa89f7ef0e4780fe6494c1a6e753145b19292e657138b1b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for securepasskeygen-1.0.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for securepasskeygen-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 663bccb2e83debdc85fd89a14005b05658d47d56e05e602ed80bbd5a31d0e123
MD5 8d8c13ac56f317046f1474ab4205f7ec
BLAKE2b-256 cc91d8067c3b70a7db2b1e9d1c27f075172cad8477edc29c2665d9e7c57881f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for securepasskeygen-1.0.2-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