Generate TOTP codes using a token and the pyotp Python package.
1.0K
Use a docker image and pyotp to generate TOTP codes from a secret.
You can just run the script like this:
python3 src/app.py AAAAAAAAAAAAAAAA
However, it's really meant for Docker.
docker run mtik00/pyotp AAAAAAAAAAAAAAAA
or better yet:
echo ${TOKEN} | xargs docker run mtik00/pyotp
The script takes a couple of optional arguments.
-c/--continuous: Continuously output the current code. Updates about once per second.-i/--interval: The interval of the secret. This is probably 30, the default.--clipboard: Copy the code to the clipboard when it changesContent type
Image
Digest
sha256:069280a55…
Size
57.2 MB
Last updated
over 3 years ago
docker pull mtik00/pyotp