Hello I trying to convert this part code from php to c# with identical result:
PHP:
md5("apple", true) //result :8pѕ'OlIігg(•
C#:
byte[] asciiBytes = ASCIIEncoding.ASCII.GetBytes("apple");
byte[] hashedBytes = MD5CryptoServiceProvider.Create().ComputeHash(asciiBytes);
return System.Text.Encoding.ASCII.GetString(hashedBytes); //result: 8p?'OlI??g(?
Similar but not exactly
upd: with BitConverter.ToString(hashedBytes).Replace("-", "").ToLower();
I have got: 1f3870be274f6c49b3e31a0c6728957f
And I have not any problems when I use md5("apple", false)