新增查询加密后的明文信息接口,新增加密视频会议相关信息方法

This commit is contained in:
wangqiong
2024-04-12 17:42:14 +08:00
parent a851d66423
commit b56288cc8c
10 changed files with 218 additions and 62 deletions
@@ -112,10 +112,17 @@ public class EncryptUtils {
public static void main(String[] args) {
String privateKey = "936df5fd9aba3b86adc3c1a1c52dcde1";
ObjectNode param = new ObjectMapper().createObjectNode();
param.put("name", "姓名");
param.put("userName", "张三");
param.put("caseNo", "ZC1234125");
param.put("userId", "124124");
param.put("roomId", "124125");
param.put("systemType", "tiaojiexitong");
String encryptString = sm4Encrypt(param.toString(), privateKey);
System.out.println("加密后的字符串:" + encryptString);
String uid = UUID.randomUUID().toString().replace("-", "");
System.out.println("uid:" + uid);
System.out.println("解密后的字符串:" + sm4Decrypt(encryptString, privateKey));
}
}