public static String stringToBase64(final String data){
  return Base64.encodeBase64String(ConversionUtils.stringToArray(data));
}

public static String stringToBase64 ( final String data ) { return Base64 . encodeBase64String ( ConversionUtils . stringToArray ( data ) ) ; }
converts plain string into base64 string .
