添加测试文件
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user