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;
import com.jeequan.jeepay.core.exception.BizException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import sun.misc.BASE64Decoder;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
......@@ -34,7 +32,7 @@ import java.util.regex.Pattern;
/*
* jeepay工具类
*
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 16:50
......@@ -42,13 +40,7 @@ import java.util.regex.Pattern;
@Slf4j
public class JeepayKit {
public static byte[] AES_KEY = null;
static{
try {
AES_KEY = new BASE64Decoder().decodeBuffer("4ChT08phkz59hquD795X7w==");
} catch (IOException e) {
}
}
public static byte[] AES_KEY = "4ChT08phkz59hquD795X7w==".getBytes();
/** 加密 **/
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