Skip to content

Securely generate customizable one-time passwords (OTPs)

License

Notifications You must be signed in to change notification settings

ragul-rofi/OTPgenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

OTP Generator

Overview

The OTP Generator is a simple Python script that generates a One-Time Password (OTP) consisting of numeric digits. This can be useful for authentication purposes in various applications.

Features

  • Generates a random OTP with a specified length (default is 6 digits).
  • Utilizes Python's random and string libraries to ensure the OTP is secure and random.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/OTPGenerator.git
  2. Navigate to the project directory:
    cd OTPGenerator

Customization

  • You can customize the length of the OTP by modifying the length parameter in the gen_otp function:
    otp = gen_otp(length=8)  # Generates an 8-digit OTP

Contributing

  • Contributions are welcome! Feel free to submit a pull request or open an issue for any suggestions or improvements

About

Securely generate customizable one-time passwords (OTPs)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages