title: HTML5 Client Side Data Encryption - What are my options?
body: <p>I am working on a EDIT: <strong>mobile web app</strong> which displays some sensitive information and requires a login which stores the members username and password in a HTML5 Session. The username and password are currently stored in an un-encrypted state for the reason that we need to use this username and password on each page load to access the clients remote web-service.</p>
  
  <p>EDIT: After a security review our client raised the following concern:</p>
  
  <p>"There is the potential that Session Storage information can get stored on disk (e.g. on a browser crash). For this reason no sensitive information should be stored unencrypted in session storage. User ID’s and session tokens can be stored since session timeouts are implemented however storing of passwords/PINs is not recommended."</p>
  
  <p>What would be the best/most secure method of encrypting and decrypting sensitive data stored client-side?</p>
  
  <p>Thanks!</p>