//step1 String code= "Oc0PEwKrLzHqT25hYLhWP5wlk5HROPJoWC3chlqMHBoxLQ/WUcbKwsamjy+N2RsBDwFnFegg1tQXmuvWUcuxIMKwMC8RCjWjgVVCH385LBiXkGLM+q9hhlfEMjavM0vHfvx02/Af+njixF7M2yuVmf6lhH2BnQ2j4sR12HvfRHbDnzKQbhrydNh7k90qB43B " //编码 String urlEnCode = URLEncoder.encode(code,"UTF-8"); //step2 //解码 String urlDeCode = URLDecoder.decode(urlEnCode,"UTF-8"); //再解码 String deStr = KmService.deCryptKey(enStr); //源代码片段来自云代码http://yuncode.net