Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7c5bbc22
authored
Apr 21, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.secretKey返回都以密文
1 parent
0f69fa11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
src/main/java/com/glsx/smart/service/impl/AiLockingKeyServiceImpl.java
src/main/java/com/glsx/smart/service/impl/AiLockingKeyServiceImpl.java
View file @
7c5bbc2
...
@@ -120,7 +120,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
...
@@ -120,7 +120,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
}
else
{
}
else
{
//如果sn,userid没有对应的crep。生成只含有crep钥匙信息返回
//如果sn,userid没有对应的crep。生成只含有crep钥匙信息返回
//雪花算法生成crep,对称加密
//雪花算法生成crep,对称加密
String
crep
=
getCrepCode
();
//将数据库密钥解密成明文
//将数据库密钥解密成明文
String
secretKey
=
""
;
String
secretKey
=
""
;
String
secretKey_db
=
carkey
.
getSecretKey
();
String
secretKey_db
=
carkey
.
getSecretKey
();
...
@@ -133,7 +133,6 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
...
@@ -133,7 +133,6 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
}
}
}
}
String
crep
=
getCrepCode
();
String
crep_encrypt
=
""
;
String
crep_encrypt
=
""
;
String
secret_key_encrypt
=
""
;
String
secret_key_encrypt
=
""
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment