HexDecode issue

Discussion created by User16087 on May 12, 2017
Latest reply on Nov 13, 2017 by dansmith65

Product and version:

FileMaker Pro Advanced


OS and version:

OSX 10.11.6 and macOS 10.12.4



iMac late 2012 and MacBook Air



Inconsistent behaviour between HexDecode and HexEncode

When trying to decode an hex key with non printable characters, HexDecode fails to decode it correctly.

This makes impossible to use the newly introduced CryptAuthCode for processes that use hex keys, like Amazon's AWS4 signature


How to replicate:

Using the test key provided by AWS:


HexEncode( HexDecode( "969fbb94feb542b71ede6f87fe4d5fa29c789342b0f407474670f0c2489e0a0d" ) )


should return the same key. It returns a completely different value instead



The current live process works with the BE_HMAC function from the BaseElements plugin




Salvatore Colangelo