public static byte[] decodeBase32(String data) {
        return data == null ? null : Base32Hex.decode(data.toUpperCase());
    }
Decodes a base32 String using the base32hex profile. Implementation
is case-insensitive and converts the given string to upper case before
decoding.

@param data a base32 encoded String to decode.
@return the decoded String.
xmppserver/src/main/java/org/jivesoftware/util/StringUtils.java