https://github.com/jaden/totp-generator
Generates TOTP tokens in the browser
https://github.com/jaden/totp-generator
totp totp-tokens two-factor-authentication
Last synced: 7 months ago
JSON representation
Generates TOTP tokens in the browser
- Host: GitHub
- URL: https://github.com/jaden/totp-generator
- Owner: jaden
- License: gpl-3.0
- Created: 2017-09-06T05:35:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T14:11:04.000Z (over 1 year ago)
- Last Synced: 2024-04-16T00:49:54.157Z (over 1 year ago)
- Topics: totp, totp-tokens, two-factor-authentication
- Language: HTML
- Size: 273 KB
- Stars: 398
- Watchers: 14
- Forks: 138
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate time-based one time passwords in the browser

[Demo](https://totp.danhersam.com/)
This page lets you easily generate a time-based one time password (TOTP) entirely in the web browser in case you ever lose access to your phone.
It uses the excellent [otpauth](https://github.com/hectorm/otpauth) package, downloaded from [raw.githubusercontent.com/hectorm/otpauth/master/dist/otpauth.umd.min.js](https://raw.githubusercontent.com/hectorm/otpauth/master/dist/otpauth.umd.min.js).
## Providing parameters in the URL
### Private key
You can provide the key in the URL using the URI fragment or a query parameter, for example: `https://totp.danhersam.com/#/KEY` or `https://totp.danhersam.com?key=KEY`
### Additional parameters
You can also pass the token digits, period and algorithm using a query string in the URL, for example: `https://totp.danhersam.com/?digits=6&period=60&algorithm=SHA256&key=KEY`
See [supported hashing algorithms](https://github.com/hectorm/otpauth#supported-hashing-algorithms) for the complete list.
### Import using QR codes
To make it easier to import Authy entries into another authenticator app, generate QR codes using my [QR code generator](https://dan.hersam.com/tools/gen-qr-code.html).
### Other Resources
* https://www.pommepause.com/2014/10/how-to-extract-your-totp-secrets-from-authy/
* https://github.com/winauth/winauth/issues/545
* https://randomoracle.wordpress.com/2017/02/15/extracting-otp-seeds-from-authy/
* https://gist.github.com/tresni/83b9181588c7393f6853
* https://gist.github.com/Ingramz/14a9c39f8c306a2d43b4