def get_s(sign_key, base_str): temp = hmac.new(sign_key, base_str, hashlib.sha1).digest() byte_array = base64.b64encode(temp) return byte_array
the signature in the page: hCtSmYh + iHYCEqBWrE7C7hYmtUk = and I got: kYIIvxGXkE40GfRdJ91ZahxGfJo=
https://developer.twitter.com/en/docs/basics/authentication/guides/creating-a-signature
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.