An open API service indexing awesome lists of open source software.

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)

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