title: How to use MD5 in javascript to transmit a password
body: <p>I have a jquery dialog modal box pop up for logging into my website.  When a user clicks login it does a post request to a login.php file as follows:</p>
  
  <pre><code>$.post(
        'includes/login.php', 
        { user: username, pass: password },
        onLogin, 
        'json' );
  </code></pre>
  
  <p>How do I do an md5 on that password before putting it in the post request?  Also, I have the user's passwords stored in a MySQL database using MD5(), so I would like to just compare the stored version of the password with the MD5 of the password submitted.  Thanks to anyone that replies.</p>