The following is an encrypted code in the JSP page, which is to get the sessionID, then randomly obtain one bit, perform XOR operation with the original string, and then make the encrypted result to Base64 encoding, and the randomly obtained characters together.
String Uid = Request.getRemoteuser (); class encutil {public string encrypt (string src, byte k) {byte [] b = src.getbytes (); if (k == 0) k = (byte) 0xE3; for INT i = 0; i The next page After obtaining this encrypted string, first perform Base64 decoding, then perform an XOR operation with the random number to obtain the original string. String Userid = Request.getParameter ("UID"); int key = integer.parseint (Request.GetParameter ("key")); byte k = (byte) key; class desutil {public string Decrypt (String src, Byte K) THROWS EXCEPTION {byte [] b = new sun.misc.base64decoder (). decodebuffer (src); if (k == 0) k = (byte) 0xE3; for (int J = 0; j