How can I recreate this .NET hash in PHP?
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();