[Question] How to check my data is secured ?
I'm using this lib and I'd like to check that the data are stored securely on my iOS and Android devices.
What is the easiest way to do this?
I was very surprised when I discovered that the data is not really protected
you can check it for android:
$ adb shell
$ run-as <app-package-name>
$ cd shared_prefs/
$ cat shared_preferences.xml
data is stored in unencrypted representation
I guess you need a rooted phone to do that ?
I guess you need a rooted phone to do that ?
I tested it on an emulator. only with remote debugging enabled.
maybe I don’t understand something, but having implemented my own module inspired by this post, I saw encrypted data in the storage.
I look at the RNSensitiveInfoModule.java module and don’t understand how encryption is called without passing touchID = true in the options. Without passing this parameter from the setItem method, we get to the putExtra method, from which we write the value to shared_prefs without any encryption.
maybe I'm doing something wrong
Hopefully @mCodex gives us an input about this topic?
This may be a little bit late, but I would recommend checking out the following resources for local storage security testing
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.