%@ page contentType="text/plain" %> <% String TLT_TARGET_VERSION = "1.1"; %> <%! public static String toMD5(String s) { if (s == null || s.length() <= 0) { return null; } try { java.security.MessageDigest alg = java.security.MessageDigest.getInstance("MD5"); alg.reset(); alg.update(s.getBytes()); byte[] digest = alg.digest(); StringBuffer hashedVal = new StringBuffer(); for (int i=0; i < digest.length; i++) { String hx = Integer.toHexString(0xFF & digest[i]); if (hx.length() < 2) { hx = "0" + hx; } hashedVal.append(hx); } return hashedVal.toString(); } catch (Exception e) { return e.toString(); } } %>
Response <% long ts1 = System.currentTimeMillis(); long totalLength = 0L; java.io.BufferedReader rdr = request.getReader(); String str1 = null, str2 = null; try { totalLength = rdr.skip(12*1024); } catch (Exception e) { out.print("