title: What is the best way to encrypt login details (username and password) of any web based application using JavaScript?
body: <p>What is the best way to encrypt the login details (username and password) of any web based application using JavaScript at client side? </p>
  
  <p>My requirement is to encrypt the username and password of the login page of the web application using JavaScript and this encrypted data needs to be used further at a later stage of the process.</p>
  
  <p>Any help would be appreciable.</p>
  
  <p>Regards...</p>