Skip to content Skip to sidebar Skip to footer

HMAC C# And JavaScript

Having trouble getting C# and Javascript to generate the same HMAC: C#: string data = String.Format('{0}{1}{2}{3}{4}{5}', APPId, requestHttpMethod, requestUri, requestTimeStamp, no

Solution 1:

Where is the apiKey in the c# code? Is it sharedKey? Is sercretKeyBytes a string, char[], or byte[]? I suspect secrtetKeyBytes is being converted to a string which is the cause of the issue.


Post a Comment for "HMAC C# And JavaScript"