AnsweredAssumed Answered

CryptAuthCode with empty data

Question asked by dansmith65 on Nov 13, 2017
Latest reply on May 15, 2018 by TSGal

Product and version: FileMaker Pro 16.0.3)

OS and version: Win 10

Description: CryptAuthCode does not process empty data, but it should

HexEncode ( CryptAuthCode ( "" ; "SHA256" ; "securekey" ) ) = ""


Workaround: Use BaseElements Plugin:

BE_HMAC ( "" ; "securekey" ; BE_MessageDigestAlgorithm_SHA256 ) = "8E5C51AB4B1812C1DEA0777812D291BB92BC4F2C9821C5F46D48C417F66D963F"


Supporting info:


Use Case: Accessing an API: Authentication · Unleashed Software, which states:

Note: The query string can also be empty, e.g. for the request /Customers, in which case you must provide a signature created by calling GetSignature(empty string, your key).