Generate One-Time passwords in JS using WebCrypto
// Time-based one-time password
await totp('SECRETSECRET')
// HMAC-based one-time password
await hotp('SECRETSECRET', 0 /* counter */) #=> 977742
$ npm install hotp-totp
| Name | Name | Last commit date | ||
|---|---|---|---|---|