@argha0277/otp-generator
v1.0.2
Published
OTP Generator with specified seed & specified digits
Downloads
6
Maintainers
Readme
#@argha0277/otp-generator
'@argha0277/otp-generator' is an one time password generator of specified digits and can be used as a password/pin generator.
Index
Install
npm i @argha0277/otp-generator --save
Usage
var otpgen = require('@argha0277/otp-generator')
var otp = otpgen.generate(4);
generate(digis)
Arguments
digits
- Number of digits in OTP. Default length is 4.
var otpgen = require('@argha0277/otp-generator')
var otp = otpgen.generateWithSeed(4, 541274896325);
generate(length, seed)
Arguments
digits
- Number of digits in OTP. Default length is 4.seed
- A numeric seed.
Tests
node test