Skip to main content

Creating Strong passwords and OTP

Project description

Password and OTP Generator The Password and OTP Generator 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: python Copy code

Example usage for generating passwords

import password_otp_generator

Generate a strong password

password = password_otp_generator.strong_password() print("Generated Strong Password:", password)

Generate a 6-digit OTP

otp = password_otp_generator.six_digit_otp() print("Generated OTP:", otp) Installation: Copy code pip install password-otp-generator

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.2.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

quickkeys-0.0.2-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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