Home Search

DriveWorks Pro 21

Send Feedback


Hashes a value using HMAC-SHA1 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.

HMAC SHA1 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.


HashHMACSHA1("MySecret",DWVariableToHash)Will return a hash of the given value, using MySecret as the key.

See Also

The function HashHMACSHA256, is a more modern and secure encryption method.

This function relates to the Send HTTP Request task.

For more information on HMACSHA1 please see HMACSHA1 Class (MSDN article).

For more information on cryptography please see Overview of encryption, digital signatures, and hash algorithms in .NET (MSDN article).