Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
extend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
park
extend
Commits
162089e7
Commit
162089e7
authored
Jun 22, 2020
by
lixian7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加解密工具
parent
f4f43501
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/ToolController.java
+15
-1
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/ToolController.java
View file @
162089e7
...
...
@@ -10,8 +10,9 @@ import org.springframework.web.bind.annotation.RestController;
/**
* 工具
*
@menu 工具类
*
* @author lixian
* @menu 工具类
* @description
* @date 2020/6/18 17:57
**/
...
...
@@ -24,6 +25,7 @@ public class ToolController {
/**
* 加密
*
* @param plain 明文
* @return
*/
...
...
@@ -33,7 +35,19 @@ public class ToolController {
}
/**
* 解密
*
* @param cipher 密文
* @return
*/
@GetMapping
(
value
=
"decrypt"
)
public
String
decrypt
(
String
cipher
)
{
return
EncryptStringAes
.
decryptAes
(
cipher
,
signKeyConfigBean
.
getKey
());
}
/**
* 获取时间戳
*
* @return
*/
@GetMapping
(
value
=
"timestamp"
)
...
...
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