React Native wrapper around EncryptedSharedPreferences and Keychain to provide a secure alternative to Async Storage.
The React Native Encrypted Storage is a secure alternative to Async Storage by providing a wrapper around Android’s EncryptedSharedPreferences and iOS’ Keychain. It addresses the lack of security in Async Storage, making it suitable for storing sensitive data like access tokens and payment information.
yarn add react-native-encrypted-storage
npm install react-native-encrypted-storage
For React Native 0.60+, no additional steps needed due to auto-linking support. For React Native <= 0.59 or special cases on iOS using cocoapods, additional linking may be required.
The React Native Encrypted Storage module offers a secure alternative to Async Storage for storing sensitive data in React Native applications. By leveraging Android’s EncryptedSharedPreferences and iOS’ Keychain, it provides enhanced security features while addressing limitations and compatibility requirements. The ease of installation and usage, along with helpful error handling mechanisms, make it a valuable tool for developers looking to protect their app’s sensitive information.