The security library includes a number of methods to convert to and from hex, base32, and base64 encoding. These are available in the global security object.

Code:
Get Bin2Hex of ghoSecurity ucaHMAC to sHexHMAC