Class Base64


  • public class Base64
    extends Object
    This is a Base64 util class.
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • base64Encode

        public static String base64Encode​(byte[] bytes)
        Used to encode the data with base64 and StandardCharsets.ISO_8859_1 coded
        Parameters:
        bytes - the data need to be encoded
        Returns:
        the encoded data with base64
      • base64Decode

        public static byte[] base64Decode​(String value)
        Used to decode the data with base64
        Parameters:
        value - the data need to be decoded
        Returns:
        the decoded data with base64