npm.io
1.0.0 • Published 13 years ago

gotp

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
3

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.

Keywords