Last week I posted a question on how to calculate a SHA256 HMAC (http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_27831058.html
), which was helpfully answered by a link from ryanmccauley
However, I actually just realised that I have to use my 'secret key' also to generate this HMAC and I am again absolutely stumped!
It's for Amazon MWS - see http://docs.amazonwebservices.com/AWSMechTurk/latest/AWSMechanicalTurkRequester/MakingRequests_RequestAuthenticationArticle.html
"Calculating Request Signatures"
has examples of the keyed results
e.g. (as far as I understand):
Simple SHA256 of "The quick brown fox jumps over the lazy dog" is:
Using a key of "key" it is:
Using a key of "MyKey" it is:
This example can be seen using https://quickhash.com/
, selecting Algorithm
:SHA-256, and either having (Use HMAC Method?
= True + HMAC Key
: = [the key] ) or not.