facing totp issue with the new base64 secret key
-
can someone please help me as the secret key has base64 characters totp api is returning below error always.
raise binascii.Error('Non-base32 digit found') from None
binascii.Error: Non-base32 digit foundi also tried by converting the base64 to base32 but still invalid otp's are getting generated. blocked with this since several days.
-
@Moderator_3 I'm also getting same error.
import pyotp as tp
t = tp.TOTP("secret_key_here").now()
Error: binascii.Error: Non-base32 digit found
secret_key_here is the secret key which is shown under apps on page https://smartapi.angelbroking.com/apps under column secret_key.
-
Hello @sivakanthreddy
Could you please share the code snippet so that we can investigate at our end
Regards,
SmartAPI Team