Sign inSign up

mtik00/pyotp

By mtik00

•Updated over 3 years ago

Generate TOTP codes using a token and the pyotp Python package.

Image
0

1.0K

mtik00/pyotp repository overview

⁠docker-pyotp

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

⁠Arguments

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 changes

Tag summary

Content type

Image

Digest

sha256:069280a55…

Size

57.2 MB

Last updated

over 3 years ago

docker pull mtik00/pyotp