Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    facing totp issue with the new base64 secret key

    Python SDK
    0
    3
    31
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sivakanthreddy last edited by

      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 found

      i also tried by converting the base64 to base32 but still invalid otp's are getting generated. blocked with this since several days.

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @sivakanthreddy last edited by

        Hello @sivakanthreddy
        Could you please share the code snippet so that we can investigate at our end
        Regards,
        SmartAPI Team

        N 1 Reply Last reply Reply Quote 0
        • N
          nazzk002.biz @Moderator_3 last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post