FreeMarker context object utils.digest has no HMAC(?)
Am just wondering if there are any plans to add HMAC to the FreeMarker context object property
utils.digest
F.e.currently, according to https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=freemarker#l%3A%3A%7B%22p%22%3A%22%2Frefer%2FcontextObjects%22%2C%22h%22%3A%22%23utils%22%7D we have common one-way hashing exposed to Studio devs, via methods such as:
utils.digest.md5Hex("message")
utils.digest.sha256Hex("message")
utils.digest.sha512Hex("message")
...
Our use-case is somewhat unexceptional, I would guess. HMAC has an IETF spec RFC2104. It could be furnished to the FreeMarker layer via single method such as:
utils.digest.hmacHex("key", "message", "hashType")
...
(...where hashPreference is the type of hash, i.e.: 'sha256' || 'md5' || 'sha512' || ... )
Is HMAC furnished elsewhere in FTL docs? We'd of course prefer not to include HMAC algo itself directly in our freemarker code.
Thanks,
Paul
P.S. Here are some references to HMAC -as-code in C and Javascript, respectively: https://github.com/WatchBeam/ftl-sdk/tree/master/libftl/hmac + https://github.com/h2non/jshashes