UNPKG

2fa-hotp-totp

Version:
27 lines (15 loc) 1.47 kB
[<img src="https://img.shields.io/npm/v/2fa-hotp-totp">](https://www.npmjs.com/package/2fa-hotp-totp) [<img src="https://img.shields.io/npm/l/2fa-hotp-totp">](https://github.com/TABmk/2fa-hotp-totp/blob/master/LICENSE) <img src="https://badgen.net/npm/types/2fa-hotp-totp"> <img src="https://badgen.net/npm/dt/2fa-hotp-totp"> <img src="https://badgen.net/npm/dm/2fa-hotp-totp"> __Help__ [<img src="https://img.shields.io/github/issues/tabmk/2fa-hotp-totp">](https://github.com/TABmk/2fa-hotp-totp/issues?q=is%3Aopen+is%3Aissue) [<img src="https://img.shields.io/github/issues-pr/tabmk/2fa-hotp-totp">](https://github.com/TABmk/2fa-hotp-totp/pulls?q=is%3Aopen+is%3Apr) #### __Rate me__ [<img src="https://img.shields.io/github/stars/tabmk/2fa-hotp-totp?style=social">](https://github.com/TABmk/2fa-hotp-totp) <p align="center"> <img src="https://github.com/TABmk/2fa-hotp-totp/raw/master/img/1.png"> </p> # __2FA-HOTP-TOTP__ Zero-dependency <img src="https://badgen.net/bundlephobia/dependency-count/2fa-hotp-totp"> __1kB gzipped__ <img src="https://badgen.net/bundlephobia/minzip/2fa-hotp-totp"> #### The minimum version of Node.js required is 15 ⚠️ My implementation of 2FA HOTP/TOTP algorithms in TypeScript + base32 encoder for creating links for authenticator programs like [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2) ### Full documentation 👇 https://tabmk.github.io/2fa-hotp-totp/