namespace LiteCharms.Features.Extensions; public static class Hash { public static Func StringToSha256Hash = (input) => Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(input!))); public static Func StreamToSha256Hash = (stream) => Convert.ToHexString(SHA256.HashData(stream)); public static Func BytesToSha256Hash = (bytes) => Convert.ToHexString(SHA256.HashData(bytes)); }