pyauth / pyotp

Python One-Time Password Library
https://pyauth.github.io/pyotp/
Other
2.95k stars 321 forks source link

How do I generate the "manual entry" code? #71

Closed bootrino closed 5 years ago

bootrino commented 5 years ago

Google Authenticator can be configured using a QR code, or via a "manual entry".

How can I generate the manual entry code with pyotp?

thanks!

tilkinsc commented 5 years ago

Pretty sure it accepts the base32 string or the otp uri.

kislyuk commented 5 years ago

Yep, the manual entry code is the base32 encoded shared secret.