md5-encrypted string returns different from database than it is inserted
<p>So, I try to check if passwords match.</p>

<p>This is the encryption I use, once when the data is inserted in the database, once to check if the inserted password on the login field matches the one from the database:</p>

<pre><code> byte[] pass = Encoding.UTF8.GetBytes(password);
 MD5 md5 = new MD5CryptoServiceProvider();
 string newPass = Encoding.UTF8.GetString(md5.ComputeHash(pass));
</code></pre>

<p>But every time I try to login (with correct details), it does not work. In the debugger, this is the string that comes from the database:</p>

<pre><code>?]??$PL??f??6?
</code></pre>

<p>And the one encrypted from the login field:</p>

<pre><code>�]��$PL��fඇ�6�
</code></pre>

<p>I suppose it's an encoding problem, but can't seem to figure it out myself.</p>
