pyauth / pyotp

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

Missing arguments in generated provisioning URI #32

Closed baco closed 8 years ago

baco commented 8 years ago

According to Key Uri Format there are three more optional arguments: algorithm, digits and period; that if they are set to something different than their defaults: SHA1, 6 and 30 respectively; they should be encoded in the generated URI.

Those values are set when the class TOTP is instantiated but are not used by the build_uri in the utils.py module.

kislyuk commented 8 years ago

The key URI format is not standardized and I believe these additions are relatively recent, which is why we haven't noticed or added them yet. Thanks for letting us know, I will add this as soon as I can, you're also welcome to send a pull request.