I'm creating a signed request (SHA256 and base64) using Java and validating this request in Python. The keys that I generated are really similar:
Java:
UjuGTll3GF7H8MHWyJc41NAEcd-OZOeJLT9PiAevcsw
Python :
UjuGTll3GF7H8MHWyJc41NAEcd+OZOeJLT9PiAevcsw
The only diference happens with char + and char -. I cannot change the java code because I don't have access to it, I only know that it uses javax.crypto.Mac. However, my python code is:
import hmac
import hashlib
hmac.new(api_secret, url, hashlib.sha256).digest().encode('base64')
The variables api_secret and url have the same input in both languages (Java and Python)
What am I missing?