Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jiwei-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马天浩
jiwei-api
Commits
5c8a93cc
Commit
5c8a93cc
authored
Dec 03, 2020
by
matianhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[资产资源接口] <update> 修改获取文件路径
parent
ad64e89a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
AESUtils.java
src/main/java/com/mth/requestsecret/util/AESUtils.java
+3
-1
No files found.
src/main/java/com/mth/requestsecret/util/AESUtils.java
View file @
5c8a93cc
...
...
@@ -3,6 +3,7 @@ package com.mth.requestsecret.util;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.bouncycastle.jce.provider.BouncyCastleProvider
;
import
org.springframework.core.io.ClassPathResource
;
import
javax.crypto.Cipher
;
import
javax.crypto.SecretKeyFactory
;
...
...
@@ -155,7 +156,8 @@ public class AESUtils {
ScriptEngine
engine
=
manager
.
getEngineByName
(
"javascript"
);
// 读取js文件
FileReader
reader
=
new
FileReader
(
System
.
getProperty
(
"user.dir"
)
+
"/src/main/resources/js/des.js"
);
ClassPathResource
classPathResource
=
new
ClassPathResource
(
"js/des.js"
);
FileReader
reader
=
new
FileReader
(
classPathResource
.
getFile
());
engine
.
eval
(
reader
);
String
encryptContent
=
""
;
...
...
Write
Preview
Markdown
is supported
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