如何在 PHP 中重新创建这个 .NET 哈希?
byte[] bH = Encoding.UTF8.GetBytes(sT);
SHA1 sha1 = SHA1.Create();
byte[] hB = sha1.ComputeHash(bH);
StringBuilder hS = new StringBuilder(hB.Length * 2);
foreach (byte b in hB) {
hS.AppendFormat("{0:x2}", b);
}
finalValue = hS.ToString();