CryptoAPI returns incorrect result for HMAC_SHA1
问题 I'm using the code below with the Crypto API and I'm not getting the results I would expect based on testing with other API's and libraries. I'm using the key, " key " and the data is " message " For example, using Indy's TidHMACSHA1, I get 2088df74d5f2146b48146caf4965377e9d0be3a4 I get the same result using online generators (such as http://www.freeformatter.com/hmac-generator.html, for example). With the code I've written (see below) I get 4a52c3c0abc0a06049d1ab648bb4057e3ff5f359 The code