README
hotp-totp
Generate One-Time passwords in JS using WebCrypto
Usage
await totp('SECRETSECRET')
await hotp('SECRETSECRET', 0 /* counter */) #=> 977742
Installation
$ npm install hotp-totp
Generate One-Time passwords in JS using WebCrypto
<script type="module">
import hotpTotp from 'https://cdn.skypack.dev/hotp-totp';
</script>
Generate One-Time passwords in JS using WebCrypto
await totp('SECRETSECRET')
await hotp('SECRETSECRET', 0 /* counter */) #=> 977742
$ npm install hotp-totp