gotp

1.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i gotp

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nathan7