0

I'm looking for a HTML5 or Flash AS3 equivalent to Adobe Air's encrypted local storage to store sensitive data such as OAuth token and passwords locally. I found local storage for HTML5 and the SharedObject for Flash but none of them are encrypted. Is there a secure way to store data locally from either HTML5 or Flash AS3?

Tom
  • 5,588
  • 20
  • 77
  • 129

1 Answers1

1

You can try doing the encryption/decryption server side and store the encrypted string values within local storage. This way you can setup your own encryption standards.

Sunny Patel
  • 7,830
  • 2
  • 31
  • 46
  • Interesting, can you please give me some more input on it? Is there a best practice available for it? – Tom Mar 26 '14 at 14:02
  • 1
    I'm not aware of any best practices for it, but after doing some digging, I found a couple questions about it. [HTML5 Web DB Security](http://stackoverflow.com/questions/2642043/html5-web-db-security), [Client Side Data Encryption](http://stackoverflow.com/questions/5976046/html5-client-side-data-encryption-what-are-my-options/6686558#6686558), [Stanford Javascript Crypto Library](http://bitwiseshiftleft.github.io/sjcl/). The last one is interesting, I may consider using on my own projects. – Sunny Patel Mar 26 '14 at 19:01