![]() |
TURL_HMACSHA1 |
Calculate a keyed-hash message authentication code (HMAC-SHA1) signature using a (secret) key.
Syntax
TURL_HMACSHA1 ( switches ; key ; messageText )
Parameters
switches | not used, reserved for future use. Leave blank or put "-Unused" |
key | the secret key to sign the text with |
messageText | the text of the message you want to sign |
Returned Result
Data type returned
text
Result
Returns the HMAC-SHA1 signature
Originated in
Troi URL Plug-in 2.6
Compatibility
FileMaker Pro 16 to 19
Considerations
See http://en.wikipedia.org/wiki/HMAC for more information on this signature.
Example
Set Variable [ $signing_key ; "ABC12345676890" ]
Set Variable [ $messageString ; "Some text to sign" ]
Set Variable [ $result_HMACSHA1_Signature ; TURL_HMACSHA1 ( "-Unused" ;
$signing_key ; $messageString ) ]
The result will be the signature: “NUHabjnddiy6+/rC2VMOB7cbLrg=”
Related topics
Troi URL Plug-in online help (overview)