修改主数据

This commit is contained in:
lvleigang 2024-07-05 13:39:35 +08:00
parent 5eee3be6c0
commit 9f0fefc503
1 changed files with 5 additions and 0 deletions

View File

@ -170,8 +170,13 @@ public class CBSUtil {
*/
public static byte[] encrypt(String requestData){
logger.info("bodyEncryptionKey: "+bodyEncryptionKey+"requestData: "+ requestData);
try {
byte[] encrypt = SM2Util.encrypt(bodyEncryptionKey, requestData.getBytes(StandardCharsets.UTF_8));
return encrypt;
}catch (Exception e){
logger.error("加密失败",e);
}
return null;
}
public static String decrypt(byte[] cipherData){