otpauth:适用于Node.js,Deno和浏览器的一次性密码(HOTPTOTP)库

时间:2021-04-27 20:56:27
【文件属性】:
文件名称:otpauth:适用于Node.js,Deno和浏览器的一次性密码(HOTPTOTP)库
文件大小:903KB
文件格式:ZIP
更新时间:2021-04-27 20:56:27
nodejs javascript security node otp OTP验证 适用于Node.js,Deno和浏览器的一次性密码(HOTP / TOTP)库。 用法 Node.js import * as OTPAuth from 'otpauth' ; // Create a new TOTP object. let totp = new OTPAuth . TOTP ( { issuer : 'ACME' , label : 'AzureDiamond' , algorithm : 'SHA1' , digits : 6 , period : 30 , secret : 'NB2W45DFOIZA' // or "OTPAuth.Secret.fromBase32('NB2W45DFOIZA')" } ) ; // Generate a token. let token = totp . generate ( ) ; // Valida
【文件预览】:
otpauth-master
----rollup.config.js(2KB)
----docs()
--------assets()
--------modules.html(286KB)
--------index.html(286KB)
--------classes()
----package.json(3KB)
----.github()
--------workflows()
----test()
--------test.js(60KB)
--------test.html(605B)
--------playwright.js(1KB)
----package-lock.json(382KB)
----dist()
--------otpauth.umd.min.js(35KB)
--------otpauth.umd.js(71KB)
--------otpauth.umd.min.js.map(67KB)
--------otpauth.d.ts(11KB)
--------otpauth.cjs.min.js(34KB)
--------otpauth.cjs.js(67KB)
--------otpauth.esm.min.js(34KB)
--------otpauth.cjs.min.js.map(67KB)
--------otpauth.esm.js(67KB)
--------otpauth.esm.min.js.map(67KB)
----src()
--------index.js(370B)
--------uri.js(4KB)
--------secret.js(3KB)
--------totp.js(5KB)
--------version.js(106B)
--------hotp.js(5KB)
--------utils()
----.eslintrc.js(45B)
----tsconfig.json(221B)
----LICENSE.md(1KB)
----.gitignore(30B)
----.browserslistrc(66B)
----types()
--------uri.d.ts(702B)
--------version.d.ts(76B)
--------index.d.ts(208B)
--------hotp.d.ts(4KB)
--------totp.d.ts(4KB)
--------secret.d.ts(2KB)
--------utils()
----README.md(2KB)
----.eslintignore(29B)
----babel.config.js(55B)

网友评论