Helper methods for formatting.
Convert ByteArray to Base64 string.
Convert ByteArray hash to hexadecimal string.