#otpassword-gen
'otpassword_gen' Simple One Time Generator.
Index
Install
npm install otpassword_gen --save
Usage
var OtpGen = require('otpassword_gen')
OtpGen.generate(6, {specialChars: false });
generate(length, options)
Arguments
-
length
- length of password. Optional ifoptions
is optional. default length is 10. -
options
- optional-
digits
- Default:true
true value includes digits in OTP -
specialChars
- Default:true
true value includes special Characters in OTP
-