Guest User

Untitled

a guest
May 4th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1.     public static String md5(String input){
  2.         String valuemd5 = "";
  3.         try{
  4.             RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, "login/md5convert.php?hash="+URL.encodeComponent(input));
  5.             builder.sendRequest("", new RequestCallback(){
  6.                 @Override
  7.                 public void onError(Request request, Throwable exception){}
  8.                 @Override
  9.                 public void onResponseReceived(Request request, Response response){
  10.                             String valuemd5 = response.getText();
  11.                             Window.alert(valuemd5);
  12.                             }
  13.             });
  14.         }
  15.         catch (RequestException e){ Window.alert(e.toString());}
  16.     return valuemd5;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment