Function for decode a Base32 string based on RFC 4648
Optional “mustpad” parameter, if is present, consider invalid Base32 input when do not have the required padding (is optional on RFC 4648).
Optional “hex” parameter use RFC 4648 base32 Extended Hex Alphabet encoding instead ot the standard encoding.
http://forum.mikrotik.com/t/base64-and-sha256-function-for-scripting/164889/8