title: HMAC SHA-384 in Java
body: <p>I am trying to translate this line of code in Python:</p>
  
  <pre><code>signature = hmac.new("1234abcd", b64, hashlib.sha384).hexdigest()
  </code></pre>
  
  <p>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?</p>
  
  <p>Also, I am asked for a nonce. What are the requirements for that?</p>