BE_HMAC_Deprecated

BE_HMAC ( text ; key {; algorithm ; outputEncoding ; inputEncoding } ) 

Does HMAC encoding on the text, using the key with a specific algorithm and outputEncoding, assuming a certain inputEncoding for the text and key.

Version 3.0 
    4.0 : Deprecated. Use the FileMaker 16 function CryptAuthCode ( data ; algorithm ; key ) instead.
    4.2 : Removed

Parameters :


text : the text to be encoded.
key : the key to encode with.
algorithm ( optional ) : Possible values are any of the _BE_MessageDigestAlgorithm_ options, with a default of _BE_MessageDigestAlgorithm_SHA1_.
outputEncoding ( optional ) : Possible values are BE_Encoding_Hex or BE_Encoding_Base64 with hex being the default.
inputEncoding ( optional ) : Possible values are BE_Encoding_Hex or BE_Encoding_Base64 with hex being the default.

Result : The encoded text.

Notes : the "input" encoding applies to both the text and the key.  So in some situations, such as AWS, you get a value in Hex encoding, and then need to re-apply that with a value in Base64.  You can't mix and match encodings in this function, so one needs to be changed.  You can use custom functions within FileMaker to convert encoding formats.  Custom Functions such as DecToHex or StringToHex are fairly easily found on the web.

Still need help? Contact Us Contact Us