woofyzhao commented on code in PR #4795:
URL: https://github.com/apache/inlong/pull/4795#discussion_r910537041
##########
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/config/EncryptConfigEntry.java:
##########
@@ -99,20 +108,20 @@ public EncryptInfo getRsaEncryptInfo() {
synchronized (this.lastUpdateTime) {
if (visitTime == this.lastUpdateTime.get()) {
RSAPublicKey rsaKey = EncryptUtil.loadPublicKeyByText(pubKey);
- this.desKey = EncryptUtil.generateDesKey();
+ this.aesKey = EncryptUtil.generateAesKey();
try {
- byte[] encryptedKey = EncryptUtil.rsaEncrypt(rsaKey,
this.desKey);
+ byte[] encryptedKey = EncryptUtil.rsaEncrypt(rsaKey,
this.aesKey);
String tmpKey = Base64.encodeBase64String(encryptedKey);
rsaEncryptedKey = URLEncoder.encode(tmpKey, "utf8");
this.lastUpdateTime.set(System.currentTimeMillis());
- return new EncryptInfo(this.version, this.rsaEncryptedKey,
this.desKey);
+ return new EncryptInfo(this.version, this.rsaEncryptedKey,
this.aesKey);
Review Comment:
Looking into the code structure problem in separate threads.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]