https://github.com/ragul-rofi/otpgenerator
Securely generate customizable one-time passwords (OTPs)
https://github.com/ragul-rofi/otpgenerator
authentication otp otp-generator python
Last synced: about 1 year ago
JSON representation
Securely generate customizable one-time passwords (OTPs)
- Host: GitHub
- URL: https://github.com/ragul-rofi/otpgenerator
- Owner: ragul-rofi
- License: mit
- Created: 2024-08-25T17:19:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T16:37:30.000Z (over 1 year ago)
- Last Synced: 2025-03-30T13:13:07.472Z (about 1 year ago)
- Topics: authentication, otp, otp-generator, python
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/yourusername/OTPGenerator.git
```
2. Navigate to the project directory:
```bash
cd OTPGenerator
```
## Customization
- You can customize the length of the OTP by modifying the length parameter in the gen_otp function:
```bash
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