You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					26 lines
				
				696 B
			
		
		
			
		
	
	
					26 lines
				
				696 B
			| 
											2 years ago
										 | package com.ynxbd.wx.wxfactory;
 | ||
|  | 
 | ||
|  | import com.ynxbd.common.helper.common.AesHelper;
 | ||
|  | 
 | ||
|  | /**
 | ||
|  |  * 请求参数处理-此处为参数解密
 | ||
|  |  */
 | ||
|  | public class ReqParamHelper {
 | ||
|  |     private static final String KEY = "wsqysqsdssjtwmyd";
 | ||
|  |     private static final String IV = "xbdynwdykkrinkll";
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     public static String encode(String data) {
 | ||
|  |         return AesHelper.encryptHex(data, KEY, IV);
 | ||
|  |     }
 | ||
|  | 
 | ||
|  |     public static String decode(String enData) {
 | ||
|  |         return AesHelper.decryptHex(enData, KEY, IV);
 | ||
|  |     }
 | ||
|  | 
 | ||
|  |     public static void main(String[] args) {
 | ||
|  |         System.out.println(encode("60165289"));
 | ||
|  |         System.out.println(decode("E9AB87BDF4DD6D38F63727DBB469DFFA"));
 | ||
|  |     }
 | ||
|  | }
 |