0

如何在 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();
4

1 回答 1

1

回答:

$finalValue = sha1($sT);
于 2013-09-24T13:09:44.167 回答