pyauth / pyotp

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

Some questions about pytop.random_hex() #158

Closed Gu-f closed 1 year ago

Gu-f commented 1 year ago

https://github.com/pyauth/pyotp/pull/82#issuecomment-1825368825

tilkinsc commented 1 year ago

It wants a base32 string. Not a hexidecimal representation of a base32 string. I think there was a translation utility made somewhere here. Theres nothing to understand other than squares dont go into the triangle hole.

Gu-f commented 1 year ago

So randomhex has no practical use in pyotp, It's just a tool method that other applications can call, right?

tilkinsc commented 1 year ago

Yes

Gu-f commented 1 year ago

I understand. Thank you