Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luzifer/webtotp
Small web-based utility to create ad-hoc TOTP codes
https://github.com/luzifer/webtotp
generator javascript totp utility
Last synced: 3 months ago
JSON representation
Small web-based utility to create ad-hoc TOTP codes
- Host: GitHub
- URL: https://github.com/luzifer/webtotp
- Owner: Luzifer
- License: apache-2.0
- Created: 2019-06-01T23:25:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T11:54:40.000Z (about 2 years ago)
- Last Synced: 2024-06-11T21:58:09.377Z (8 months ago)
- Topics: generator, javascript, totp, utility
- Language: Vue
- Homepage: https://tools.hub.luzifer.io/webtotp/
- Size: 752 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Luzifer / webtotp
`webtotp` is a small web-based utility to create ad-hoc TOTP codes like the Google Authenticator would. The tool does not send any data to any service but is based fully in your browser.
My specific usecase for this is I do have accounts which OTP secrets are stored outside of my TOTP generator as usually I don't need to access those accounts and if I would add those secrets to my TOTP generator I would have a lot more entries in it. So I do store the secrets in a safe place and needed a convenient generator to generate single OTP tokens from them.
You can even send the page with the OTP code to someone by appending the secret to the URL in the hash part:
```
https://webtotp.example.com/#mysecret
```
As long as you make sure it is in the hash-part (behind the `#`) the browser will not send the secret to the server but keep it locally in the browser. When sending the URL containing the secret make sure you are using a secured transport like [OTS](https://ots.fyi/) to ensure the chat / email provider is not able to fetch those secrets from the URL.![](screenshot.png)
## Installation
Either use the provided Docker image:
```console
# docker run --rm -ti -p 3000:3000 luzifer/webtotp
```Or compile the code yourself and just put the generated files somewhere:
```console
# npm ci && npm run build
# tree dist
dist
├── app.js
└── index.html0 directories, 2 files
```