Files
myAi/Helpers/common-helpers/HashHelpers.cs
claude 75bc9509c5
Build and Push Docker Images / build (push) Successful in 4m35s
Changes
2026-05-14 14:12:29 +03:00

15 lines
354 B
C#

using System.Security.Cryptography;
using System.Text;
namespace CommonHelpers
{
public static class HashHelper
{
public static string Compute(string value)
{
using var sha = SHA256.Create();
return Convert.ToHexString(sha.ComputeHash(Encoding.UTF8.GetBytes(value ?? string.Empty)));
}
}
}