UNPKG
2fa-hotp-totp
Version:
latest (2.1.3)
2.1.3
2.1.2
2.1.1
2.1.0
2.1.0-beta.1
2.0.1
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Zero dependency HOTP/TOTP 2FA
github.com/TABmk/2FA-HOTP-TOTP
TABmk/2FA-HOTP-TOTP
2fa-hotp-totp
/
lib
/
generateKey.js
2 lines
(1 loc)
•
233 B
JavaScript
View Raw
1
2
"use strict"
;
exports
.
__esModule
=!
0
,
exports
.
generateKey
=
void
0
;
var
crypto_1=
require
(
"crypto"
),generateKey=
function
(
a
){
return
void
0
===a&&(a=
64
),crypto_1.
generateKeySync
(
"hmac"
,{
length
:a})[
"export"
]()};
exports
.
generateKey
=generateKey;