mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-21 02:58:06 +08:00
feat(tenpayv2): 新增部分接口
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Xunit;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.UnitTests
|
||||
{
|
||||
public class TestCase_AESUtilityTests
|
||||
{
|
||||
[Fact(DisplayName = "测试用例:AES-ECB 解密")]
|
||||
public void TestAESGCMDecrypt()
|
||||
{
|
||||
string key = "01234567890abcdefedcba9876543210";
|
||||
string cipherText = "l/aL5GyVfl/tw3Lww6GvCQ==";
|
||||
|
||||
string actualPlain = Utilities.AESUtility.DecryptWithECB(encodingKey: Convert.ToBase64String(Encoding.UTF8.GetBytes(key)), encodingCipherText: cipherText);
|
||||
string expectedPlain = "SKIT is great!";
|
||||
|
||||
Assert.Equal(expectedPlain, actualPlain);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user