public class ApiSecurityUtils extends Object
public static String decrypt(String sm4KeyBySm2, String decryptStr)
sm4KeyBySm2 - 经过Sm2加密的sm4keydecryptStr - 经过sm4加密的数据public static ApiEncryptBody encrypt(String encryptStr, String frontPublicKey) throws Exception
encryptStr - 要加密的数据frontPublicKey - 前端公钥ExceptionCopyright © 2025. All rights reserved.