添加加密并MAC 计算接口

This commit is contained in:
Cheney Wong
2025-06-26 11:03:56 +08:00
parent a19effccab
commit cc3391f10e
2 changed files with 13 additions and 7 deletions
+2 -5
View File
@@ -1,9 +1,6 @@
package test;
import cn.hutool.core.collection.ListUtil;
import com.google.common.collect.Lists;
import com.sunyard.sge.database.*;
import org.junit.Assert;
import java.util.Arrays;
import java.util.List;
@@ -15,14 +12,14 @@ public class EncryptAndMac {
// 路径要以 / 或 \\ 结尾表示目录
String[] pcipList = {"172.1.41.216", "172.1.41.129"};
int[] iportList = {8080, 8889};
int[] iportList = {8880, 8889};
SydApi api = new SydApi4Database();
try {
api.SYD_Short_Connect_Ex(pcipList, iportList, 1000, 1000);
// 密钥索引
int keyEncIdx = 0;
int keyEncIdx = 1;
int keyMacIdx = 1;