Skip to main content

TURL_HMACSHA1 (function reference)

By October 1, 2021October 13th, 2021Online Help, Troi URL plug-in
Troi URL Plug-in for FileMaker Pro

TURL_HMACSHA1

Calculate a keyed-hash message authentication code (HMAC-SHA1) signature using a (secret) key.

SyntaxFunction badge

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)


Online Help Page for Troi URL Plug-in for 16 to 19 –> TURL_HMACSHA1 (urlp4413) 2021-1013 16:28:54

troi.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping us to understand which sections of the website you find most interesting and useful.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.