title: how to encrypt/decrypt cookies data while writing and reading using jquery
body: <p>I am using JQuery Cookies plugin for reading/writing the cookies, I have got below code in which I am storing the username, now I want that it should be encrpted in cookies and will be decrypted while reading.</p>
  
  <pre><code>if ($('#remember').attr('checked')) 
                      {                  
                          $.cookie('username', userNo.val());                    
                          $.cookie('remember', 'true');  
                      } 
                      else 
                      {
                          // reset cookies
                          $.cookie('username', null);                   
                          $.cookie('remember', null);
                      }  
  </code></pre>
  
  <p>Please suggest!!</p>