How to get the totp code

  1. Get the TOTP QR code.
  2. Install zbar, decode the QR code.
brew install zbar
zbarimg qr.png
  1. Generate totp code from the decoded code.
from dpdispatcher.utils import generate_totp
print(generate_totp("A5UKDJDSDSK"))



If you found this useful, please cite this as:

Fan, Jiahao (Nov 2022). How to get the totp code. https://pkufjh.github.io/.

or as a BibTeX entry:

@article{fan2022how-to-get-the-totp-code,
  title   = {How to get the totp code},
  author  = {Fan, Jiahao},
  year    = {2022},
  month   = {Nov},
  url     = {https://pkufjh.github.io//blog/2022/totp/}
}



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • OpenMM python package
  • String method
  • Guided diffusion models
  • All you need to know about free energy (Part I)
  • Diffusion model in SO(3) space