perf: 优化 StableHash

This commit is contained in:
uye
2025-12-14 18:41:36 +08:00
parent b3bb0c92cc
commit 516d781e4e

View File

@@ -47,6 +47,6 @@ public static class StringExtensions
public static string StableHash(this string input)
{
var hash = SHA256.HashData(Encoding.UTF8.GetBytes(input));
return BitConverter.ToString(hash).Replace("-", string.Empty);
return Convert.ToHexString(hash);
}
}