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
Generate One-Time passwords in JS using WebCrypto API
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
Generate One-Time passwords in JS using WebCrypto API
MIT License