微调
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.njcn.gather.device.device.util;
|
||||
|
||||
import com.njcn.common.utils.sm.Sm4Utils;
|
||||
import com.njcn.common.utils.sm.ThreeDesUtil;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
|
||||
@@ -28,9 +29,9 @@ public class DeviceUtil {
|
||||
seriesTmp = ThreeDesUtil.decryptThreeDes(content);
|
||||
} else if (cd == 2) {
|
||||
//SM4加密密码
|
||||
// String secretkey = Sm4Utils.globalSecretKey;
|
||||
// Sm4Utils sm4 = new Sm4Utils(secretkey);
|
||||
// seriesTmp = sm4.decryptData_ECB(content);
|
||||
String secretkey = Sm4Utils.globalSecretKey;
|
||||
Sm4Utils sm4 = new Sm4Utils(secretkey);
|
||||
seriesTmp = sm4.decryptData_ECB(content);
|
||||
}
|
||||
return seriesTmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user