Java URL encoding and decoding decrypts the key

From , 3 Years ago, written in Java, viewed 221 times.
URL https://pastebin.vip/view/c7635bfd
  1.         /**
  2.  
  3.          * 对密钥解密
  4.  
  5.          * @param enStr
  6.  
  7.          * @return
  8.  
  9.          * @throws Exception
  10.  
  11.          */
  12.  
  13.         @ResponseBody
  14.  
  15.         @RequestMapping(value="/deCryptKey/{enStr}",method=RequestMethod.GET)
  16.  
  17.         public String deCryptKey(@PathVariable("enStr") String enStr) throws Exception{
  18.  
  19.                 //enStr = new String(enStr.getBytes("iso-8859-1"),"utf-8");
  20.  
  21.                 //enStr = java.net.URLDecoder.decode(enStr,"utf-8");
  22.  
  23.                 String deStr = KmService.deCryptKey(enStr);
  24.  
  25.                 return deStr;
  26.  
  27.         }//源代码片段来自云代码http://yuncode.net
  28.                        

Reply to "Java URL encoding and decoding decrypts the key"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website