mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 10:41:58 +08:00
25 lines
699 B
C#
25 lines
699 B
C#
![]() |
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace SKIT.FlurlHttpClient.Wechat.Ads.UnitTests
|
|||
|
{
|
|||
|
public class WechatAdsSecurityTests
|
|||
|
{
|
|||
|
[Fact(DisplayName = "信息摘要(MD5)")]
|
|||
|
public void Md5HashTest()
|
|||
|
{
|
|||
|
string rawData = "spidbff89d5138160943040012345678901234567890uFolxxiZbrZ/PRbyen5uK5D1kgIB2yHyDsfDGxxgeG";
|
|||
|
|
|||
|
string actualHash = Security.MD5Utility.Hash(rawData);
|
|||
|
string expectdHash = "32c03e8fcdb08e653e42805e302f70ed";
|
|||
|
|
|||
|
Assert.Equal(expectdHash, actualHash, ignoreCase: true);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|