mdTemp.update(strTemp);
byte[] md = mdTemp.digest();
int j = md.length;
char str[] = new char[j * 2];
int k = 0;
for (int i = 0; i < j; i++) {
byte byte0 = md[i];
str[k++] = hexDigits[byte0 >>> 4 & 0xf];
str[k++] = hexDigits[byte0 & 0xf];
}
return new String(str);
} catch (Exception e) {
return null;
}
}%>
<%
request.setCharacterEncoding(“UTF-8”);
response.setCharacterEncoding(“UTF-8”);
String action = request.getParameter(“action”);
if (“login”.equals(action)) {
//获取各种参数
String account = request.getParameter(“account”);
String password = request.getParameter(“password”);
int timeout = new Integer(request.getParameter(“timeout”));
String ssid = calcMD5(account + KEY)