I am trying to convert a c# code to php but since I am from a php background I am unable to find the relevant code. Here is the code.
static string sha1Hash(string password)
{
return string.Join("", SHA1CryptoServiceProvider.Create().ComputeHash(Encoding.UTF8.GetBytes(password)));
}
I tried use sha1() of php but the output is very different.c