I want to store sensitive data locally in a React Native app.
Is the data only available to the app that wrote it?
As described on React Native's website: “AsyncStorage is an unencrypted, asynchronous, persistent, key-value storage system that is global to the app.” It's a mouthful. But simply put, it allows you to save data locally on the user's device.
Android - Keystore react-native-encrypted-storage - uses Keychain on iOS and EncryptedSharedPreferences on Android. react-native-sensitive-info - secure for iOS, but uses Android Shared Preferences for Android (which is not secure by default).
Deprecated. Use one of the community packages instead. AsyncStorage is an unencrypted, asynchronous, persistent, key-value storage system that is global to the app. It should be used instead of LocalStorage.
AsyncStorage is not suitable for storing sensitive information. You might find this useful: https://github.com/oblador/react-native-keychain
It uses facebook conceal/android keystore to store encrypted data to SharedPreferences
(Android) and keychain on iOS. (I co-authored the lib). Be sure to read the entire readme to understand what it offers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With