LocalStorage is encrypted and unavailable after closing the application. This way you can use SJCL to encrypt your local storage for runtime.
It is best to work with Oauth and request reasonable data when you need it.
But this is not a Javascript issue. When a person has an application, a phone and access to your code, this can happen with Android applications.
You can maximize protection using whitelisting and https. After you create an application for release (not debugging), the data is saved in the same way as files.
Can you tell screnario where you need extra protection?
The worst case would be a thief
- has a phone
- launches the application
- can add script to application to retrieve data
source share