Class Base64

java.lang.Object
com.mku.android.convert.Base64
All Implemented Interfaces:
IBase64

public class Base64 extends Object implements IBase64
Base64 Proxy for Android.
  • Constructor Details

    • Base64

      public Base64()
  • Method Details

    • decode

      public byte[] decode(String text)
      Decode a string.
      Specified by:
      decode in interface IBase64
      Parameters:
      text - String to be converted.
      Returns:
      The bytes with the decoded data.
    • encode

      public String encode(byte[] data)
      Encode a string.
      Specified by:
      encode in interface IBase64
      Parameters:
      data - The byte array to be converted.
      Returns:
      The string with the text encoded