UNPKG
gotp
Version:
latest (1.0.0)
1.0.0
simple RFC4226 TOTP
nathan7/gotp
gotp
/
README.md
6 lines
(3 loc)
•
200 B
Markdown
View Raw
1
2
3
4
5
6
# gotp(K, length =
6
, timeSlice =
30
, epoch = Math.floor(
Date
.now() /
1000
)) Generates a time-based OTP according
to
RFC4226. K
is
assumed
to
be base32. Spaces are automatically removed
from
K.