Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
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
zengtianlai3
ioc_sixiang_license
Commits
cf7965c5
Commit
cf7965c5
authored
Aug 16, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
敏感信息加盐加密
parent
1d9b24e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ApplyController.java
.../java/iot/sixiang/license/controller/ApplyController.java
+3
-2
UserController.java
...n/java/iot/sixiang/license/controller/UserController.java
+2
-1
No files found.
license/src/main/java/iot/sixiang/license/controller/ApplyController.java
View file @
cf7965c5
...
...
@@ -98,8 +98,9 @@ public class ApplyController {
pages
=
pages
+
1
;
}
List
<
AppVo
>
result
=
records
.
getResult
();
String
str
=
"n647dBvogC5ps9r0zePShkExRMGyIZlqFUuWNL1Qt8XVja3A"
;
for
(
AppVo
u
:
result
)
{
u
.
setAppKey
(
DigestUtils
.
md5DigestAsHex
(
u
.
getAppKey
().
getBytes
(
)));
u
.
setAppKey
(
DigestUtils
.
md5DigestAsHex
(
((
str
+
u
.
getAppKey
()).
getBytes
()
)));
}
return
new
PageResult
(
200
,
"查找成功"
,
pageNo
,
pages
,
total
,
result
);
}
...
...
license/src/main/java/iot/sixiang/license/controller/UserController.java
View file @
cf7965c5
...
...
@@ -146,8 +146,9 @@ public class UserController {
pages
=
pages
+
1
;
}
List
<
UserVo
>
result
=
records
.
getResult
();
String
str
=
"uBtWZTiPMYkQLsp7rNly3RUIXKGqFbjnSg56H8ve49AC0mfO"
;
for
(
UserVo
u
:
result
)
{
u
.
setPassword
(
DigestUtils
.
md5DigestAsHex
(
u
.
getPassword
(
).
getBytes
()));
u
.
setPassword
(
DigestUtils
.
md5DigestAsHex
(
(
str
+
u
.
getPassword
()
).
getBytes
()));
}
return
new
PageResult
(
200
,
"查找成功"
,
pageNo
,
pages
,
total
,
result
);
}
...
...
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