I am trying to calculate a SHA-1 Hash from a string, but when I calculate the string using php\'s sha1 function I get something different than when I try it in C#. I need C#
Use ASCIIEncoding instead of UnicodeEncoding. PHP uses ASCII charset for hash calculations.