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.
25 lines
695 B
25 lines
695 B
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("10077577"));
|
|
// System.out.println(Base64Helper.encode("11019494", true));
|
|
}
|
|
}
|
|
|