I am trying to translate this line of code in Python:
signature = hmac.new("1234abcd", b64, hashlib.sha384).hexdigest()
I am trying to get the hash of a string with a secret key using SHA-384. However, I am trying to do this Java, does anyone know how to do it?
Also, I am asked for a nonce. What are the requirements for that?