How to compare md5 password php
<p>I need to check if <code>$user_entered_pass</code>idential to <code>$hash_val</code> . Please help me?</p>

<pre><code>    &lt;?php
    $mypass = "Rainbow";
    $hash_val = md5($mypass);

    echo $hash_val; //always 32 characters

    $user_entered_pass = "rainbow";
?&gt;
</code></pre>