添加测试文件

This commit is contained in:
Yun
2025-11-09 18:23:08 +08:00
parent 7bbd570de9
commit 034315ddbd
5 changed files with 93 additions and 10 deletions
+2 -2
View File
@@ -200,7 +200,7 @@ func Encrypt(encryptType EncryptType, data string, key string, options map[strin
// 编码
case BASE64:
return base64x.Base64StdEncode(data), nil
return base64x.StdEncode(data), nil
default:
return "", fmt.Errorf("不支持的加密类型: %d", encryptType)
@@ -267,7 +267,7 @@ func Decrypt(encryptType EncryptType, data string, key string, options map[strin
// 编码
case BASE64:
return base64x.Base64StdDecode(data)
return base64x.StdDecode(data)
default:
return "", fmt.Errorf("不支持的加密类型: %d", encryptType)