titanium-sdk
titanium-sdk copied to clipboard
Enable support for EncryptedSharedPreferences
I have searched and made sure there are no existing issues for the issue I am filing
- [X] I have searched the existing issues
Description
We've had white hat hackers test our system for vulnerabilities. One of the things they pointed out was the current use of "SharedPreferences" (Ti.App.properties).
Solution
The hackers suggested we should use "EncryptedSharedPreferences" instead. https://developer.android.com/reference/androidx/security/crypto/EncryptedSharedPreferences.
Alternatives
No response
Platforms
Android
already made some progress here :)
It will store value2
inside the secret_share_prefs.xml file. The other value is stored in the normal titanium.xml
Just have to see if it should be a different setString
like setStringSecure()
so you could use both or if this way is better but then (at the moment) you can't get both values