private String computeMd5Hash(String buffer){
  MessageDigest md;
  try {
    md=MessageDigest.getInstance("MD5");
    return bytesToHex(md.digest(buffer.getBytes("UTF-8")));
  }
 catch (  NoSuchAlgorithmException ignore) {
  }
catch (  UnsupportedEncodingException e) {
  }
  return "";
}

private String computeMd5Hash ( String buffer ) { MessageDigest md ; try { md = MessageDigest . getInstance ( "MD5" ) ; return bytesToHex ( md . digest ( buffer . getBytes ( "UTF-8" ) ) ) ; } catch ( NoSuchAlgorithmException ignore ) { } catch ( UnsupportedEncodingException e ) { } return "" ; }
needed for the digest access authentication .
