1.0.1 • Published 6 months ago

@eternaljs/otp-generator v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

OTP (One-Time Password) Generator

An OTP (One-Time Password) generator is a crucial tool for enhancing security in digital transactions and logins. It generates unique, time-sensitive codes that serve as an additional layer of authentication. This adds an extra level of protection against unauthorized access, making it a fundamental component in securing sensitive information and ensuring user safety in various online interactions.

Installing

Using npm:

$ npm install @eternaljs/otp-generator

Using yarn:

$ yarn add @eternaljs/otp-generator

Usage

These examples assume you're in node, or something similar:

// JavaScript
const { generateOTP } = require("@eternaljs/otp-generator");

// TypeScript
import { generateOTP } from "@eternaljs/otp-generator";

// Generate Random OTP
const genPassword = generateOTP(6);
// '462861'

License

MIT