public static String encodedMessage(String message){
  return Base64.encodeToString(message.getBytes(),Base64.DEFAULT);
}

public static String encodedMessage ( String message ) { return Base64 . encodeToString ( message . getBytes ( ) , Base64 . DEFAULT ) ; }
encode message using base64 encoding
