Hashes a value using HMAC-SHA256 and returns it as a Base64 encoded string.
A Hash-based Message Authentication Code (HMAC) is sometimes required by third party systems that use OAuth 2.0 authentication to send a signing key.
This is required when sending a REST request (for example when using the Send HTTP Request Task) from DriveWorks.
ORACLE NetSuite requires REST requests to be authenticated using SHA256.
HMAC SHA256 can be used to generate the signing key.
To ensure compatibility with the DriveWorks rules engine, hashes generated with this function are automatically Base64 encoded - (by default, HMAC SHA1 returns binary data, which is not supported in the rules engine)
Key is the signing key to use during encryption.
This is also known as a secret key.
Value is the base string to encrypt.
|HashHMACSHA256("MySecret",DWVariableToHash)||Will return a hash of the given value, using MySecret as the key.|
The function HashHMACSHA1 is also available.
This function relates to the Send HTTP Request task.
For more information on HMACSHA256 please see HMACSHA256 Class (MSDN article).
For more information on cryptography please see Overview of encryption, digital signatures, and hash algorithms in .NET (MSDN article).