I have problem with MD5 and Base64 functions in PHP and C#. When I try hash my string without polish chars it's ok but when I use polish chars returned different. How can I fix this?
C#
MD5 md5 = MD5.Create();
string hash = Convert.ToBase64String(md5.ComputeHash(Encoding.ASCII.GetBytes(tbPassword.Text)));
PHP
base64_encode(md5($string, true));