refactor: properly rename connections-related tables; top-level namespaces

This commit is contained in:
2024-12-26 13:49:26 +01:00
parent a1950b7586
commit feb47b1f8e
24 changed files with 967 additions and 495 deletions

View File

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