pyauth / pyotp

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

binascii.Error: Non-base32 digit found #155

Closed Denkneb closed 9 months ago

Denkneb commented 9 months ago

2023-10-05_11-55

Denkneb commented 9 months ago

base64.b32decode does not accept numbers not in the range 2-7, it is 0, 1, 8, 9 https://en.wikipedia.org/wiki/Base32

kislyuk commented 9 months ago

Thanks for your interest in PyOTP. Please see this section of the documentation for examples of generating OTP secrets: https://pyauth.github.io/pyotp/#generating-a-secret-key

This report does not appear to be describing a bug, so I'm going to close it.