pyauth / pyotp

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

Some questions about pytop.random_hex() #158

Closed Gu-f closed 7 months ago

Gu-f commented 8 months ago

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

tilkinsc commented 8 months 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 8 months ago

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

tilkinsc commented 8 months ago

Yes

Gu-f commented 7 months ago

I understand. Thank you