Skip to main content

Creating Strong passwords and OTP

Project description

quickkeys

The quickkeys package provides a simple and versatile tool for generating secure passwords and one-time passwords (OTPs). With this package, you can easily generate passwords and OTPs of varying lengths and complexities to enhance the security of your applications.

Features

Password Generation:

  • Generate passwords with a customizable number of letters, symbols, and numbers.
  • Choose from predefined functions to generate passwords of specific lengths:
    • four_digit_password(): Generates a 4-digit password with 2 letters, 1 symbol, and 1 number.
    • six_digit_password(): Generates a 6-digit password with 4 letters, 1 symbol, and 1 number.
    • eight_digit_password(): Generates an 8-digit password with 4 letters, 2 symbols, and 2 numbers.
    • strong_password(): Generates a strong password with a random length between 8 and 10 characters, including a mix of letters, symbols, and numbers.

OTP Generation:

  • Generate one-time passwords (OTPs) with a customizable number of digits.
  • Choose from predefined functions to generate OTPs of specific lengths:
    • four_digit_otp(): Generates a 4-digit OTP.
    • six_digit_otp(): Generates a 6-digit OTP.

Usage

# Example usage for generating passwords
import quickkeys

# Generate a strong password
password = quickkeys.strong_password()
print("Generated Strong Password:", password)

# Generate a 6-digit OTP
otp = quickkeys.six_digit_otp()
print("Generated OTP:", otp)

Installation

pip install quickkeys

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

quickkeys-0.0.5.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

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