Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
733a6474
Commit
733a6474
authored
Jul 16, 2021
by
terrfly
Browse files
删除 import sun.misc.BASE64Decoder 的引用;
parent
7e8c1bf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JeepayKit.java
View file @
733a6474
...
...
@@ -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
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment