【文件属性】:
文件名称:otp-generator:一次性密码生成器
文件大小:39KB
文件格式:ZIP
更新时间:2021-05-17 00:06:54
JavaScript
#otp-generator
“ otp-generator”是简单的一次性密码生成器,可以用作密码生成器。
指数
安装
npm install otp-generator --save
用法
var otpGenerator = require ( 'otp-generator' )
otpGenerator . generate ( 6 , { upperCase : false , specialChars : false } ) ;
生成(长度,选项)
争论
length -密码的长度。 如果options是可选的,则为可选。 默认长度为10。
options -可选
digits默认值: true true值包括OTP中的数字
alphabets -默认: true true值包括OTP中的字母
upperCase默认值: true true值包含OTP中的大写字母
sp
【文件预览】:
otp-generator-master
----.gitignore(1KB)
----README.md(2KB)
----test()
--------generateOTP.js(4KB)
----LICENSE(1KB)
----.gitattributes(378B)
----package.json(1KB)
----index.js(2KB)
----jsconfig.json(253B)
----.npmignore(108B)
----.travis.yml(148B)
----package-lock.json(125KB)