Commit cf7965c5 authored by zengtianlai3's avatar zengtianlai3

敏感信息加盐加密

parent 1d9b24e8
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
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