@eternaljs/otp-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @eternaljs/otp-generator

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • gchandrasekhar