Files
myAi/rag-api/Clients/Ai/HashHelper.cs
T
claude 91cdb536b1
Build and Push Docker Images / build (push) Successful in 32s
Changes
2026-05-06 12:48:44 +03:00

15 lines
345 B
C#

using System.Security.Cryptography;
using System.Text;
namespace Api.Clients.Ai;
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);
}
}