title: How to encrypt cookie password in browser
body: <p>I am implementing <strong>remember me</strong> functionality to login. I used jquery as following code but big disadvantage from that code as I mentioned below code snippet, Plaintext password storing into browser, Its not secure can any one tell me how to implement safe and secure <code>remember me</code></p>
  
  <pre><code>$("#login_form").ready(function() { 
      $('#username').val($.cookie('username')).change();
      $('#password').val($.cookie('password')).change();    
      //alert($('#password').val($.cookie('password')).change());  
      $('#remember').click(function()
      {
         var username = $('#username').val();
         var password = $('#password').val();    
         // set cookies to expire in 30 days
         $.cookie('username', username, { expires: 30 });
         $.cookie('password', password, { expires: 30 });        
      });
  });
  </code></pre>