Is there a way for this function to return binary instead of Hex? oic.crypto.hmacsha256?
in Integration
Summary:
I need to trigger a REST API wherein, the hash value is a SHA-256 digest of a concatenation of a series of strings and the output
should be in binary, and not in hexadecimal. I'm trying the below code but it seems that the output in OIC is hexadecimal. Is there a way to make the output binary?
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
function generate_hashCode(hmacString_value, hmacKey_value) {
var hashCode_value = oic.crypto.hmacsha256 ( hmacString_value, hmacKey_value);
Tagged:
0