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.
- Generates a random OTP with a specified length (default is 6 digits).
- Utilizes Python's
random
andstring
libraries to ensure the OTP is secure and random.
- Clone the repository:
git clone https://github.com/yourusername/OTPGenerator.git
- Navigate to the project directory:
cd OTPGenerator
- 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
- Contributions are welcome! Feel free to submit a pull request or open an issue for any suggestions or improvements