Add project files.

This commit is contained in:
2024-04-16 23:39:52 +02:00
parent 7ccde390bd
commit 901b26153e
28 changed files with 1321 additions and 0 deletions

14
Utility/HashUtility.cs Normal file
View File

@@ -0,0 +1,14 @@
using System.Security.Cryptography;
using System.Text;
namespace ConnectionsAPI.Utility
{
public static class HashUtility
{
public static string CalculateMD5(string input)
{
byte[] hash = MD5.HashData(Encoding.UTF8.GetBytes(input));
return Convert.ToHexString(hash).Replace("-", string.Empty).ToLower();
}
}
}