feat: dotnet 9, CPM, etc

This commit is contained in:
Benjamin Nomine
2025-01-11 14:05:54 -05:00
parent ace7566c2a
commit 01477d8b25
22 changed files with 213 additions and 128 deletions

View File

@@ -8,9 +8,7 @@ public static class StringHelp
{
public static string GetMD5Hash(string txt)
{
using MD5 md5 = MD5.Create();
byte[] inputBuffer = Encoding.UTF8.GetBytes(txt);
byte[] hashBuffer = md5.ComputeHash(inputBuffer);
return BitConverter.ToString(md5.ComputeHash(inputBuffer)).Replace("-", "");
return Convert.ToHexString(MD5.HashData(inputBuffer));
}
}