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