Commit 733a6474 authored by terrfly's avatar terrfly
Browse files

删除 import sun.misc.BASE64Decoder 的引用;

parent 7e8c1bf0
...@@ -20,9 +20,7 @@ import com.jeequan.jeepay.core.constants.CS; ...@@ -20,9 +20,7 @@ import com.jeequan.jeepay.core.constants.CS;
import com.jeequan.jeepay.core.exception.BizException; import com.jeequan.jeepay.core.exception.BizException;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import sun.misc.BASE64Decoder;
import java.io.IOException;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
...@@ -34,7 +32,7 @@ import java.util.regex.Pattern; ...@@ -34,7 +32,7 @@ import java.util.regex.Pattern;
/* /*
* jeepay工具类 * jeepay工具类
* *
* @author terrfly * @author terrfly
* @site https://www.jeepay.vip * @site https://www.jeepay.vip
* @date 2021/6/8 16:50 * @date 2021/6/8 16:50
...@@ -42,13 +40,7 @@ import java.util.regex.Pattern; ...@@ -42,13 +40,7 @@ import java.util.regex.Pattern;
@Slf4j @Slf4j
public class JeepayKit { public class JeepayKit {
public static byte[] AES_KEY = null; public static byte[] AES_KEY = "4ChT08phkz59hquD795X7w==".getBytes();
static{
try {
AES_KEY = new BASE64Decoder().decodeBuffer("4ChT08phkz59hquD795X7w==");
} catch (IOException e) {
}
}
/** 加密 **/ /** 加密 **/
public static String aesEncode(String str){ public static String aesEncode(String str){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment