docs 优化EncryptUtils加解密注释

This commit is contained in:
AprilWind 2025-05-10 14:48:34 +08:00
parent 3749e7e724
commit eac7f1b4e2

View File

@ -108,7 +108,7 @@ public class EncryptUtils {
}
/**
* sm4加密
* SM4加密Base64编码
*
* @param data 待加密数据
* @param password 秘钥字符串
@ -127,11 +127,11 @@ public class EncryptUtils {
}
/**
* sm4加密
* SM4加密Hex编码
*
* @param data 待加密数据
* @param password 秘钥字符串
* @return 加密后字符串, 采用Base64编码
* @return 加密后字符串, 采用Hex编码
*/
public static String encryptBySm4Hex(String data, String password) {
if (StrUtil.isBlank(password)) {
@ -148,7 +148,7 @@ public class EncryptUtils {
/**
* sm4解密
*
* @param data 待解密数据
* @param data 待解密数据可以是Base64或Hex编码
* @param password 秘钥字符串
* @return 解密后字符串
*/