We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eabf1c commit 18c44c2Copy full SHA for 18c44c2
test/NETCore.Encrypt.Tests/MD5_Tests.cs
@@ -25,5 +25,16 @@ public void MD5_Error_Test()
25
{
26
Assert.Throws<ArgumentException>(() => EncryptProvider.Md5(string.Empty));
27
}
28
+
29
+ [Fact(DisplayName = "MD5 with length success test")]
30
+ public void MD5_With_Length_Success_Test()
31
+ {
32
+ var srcString = "Md5 test";
33
34
+ var hashed = EncryptProvider.Md5(srcString, MD5Length.L16);
35
36
+ Assert.NotEmpty(hashed);
37
+ Assert.Equal("69c6ecadb32f5492", hashed.ToLower());
38
+ }
39
40
0 commit comments