Storage engine for redux-persist that wraps react-native-encrypted-storage to provide encrypted on-device persistence using Android EncryptedSharedPreferences and iOS Keychain. Version 1.1.1, released under MIT license. Ships TypeScript definitions. Key differentiator is use of native encryption (AES-based) instead of base64 or simple AsyncStorage, with automatic key sanitization to allowed characters [A-Za-z0-9.-_]. Requires react-native-encrypted-storage as a peer dependency and react-native environment. Designed as a drop-in replacement for AsyncStorage in redux-persist persist config.
npm install redux-persist-encrypted-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Integrates encrypted storage as the global storage engine for redux-persist.
Ensure your persist key and reducer keys contain only allowed characters or use the custom replacer option.
Use a different storage engine for web (e.g., redux-persist-filesystem-storage) or run in a React Native app.
Check redux-persist v6 migration docs. If using v6, ensure your config is compatible with custom storage engines.
Run npm install react-native-encrypted-storage and then cd ios && pod install (for iOS).
Assign result to a variable and pass it as `storage` in persist config, e.g., const secureStorage = createSecuredStorage(); config.storage = secureStorage;
Use only letters, digits, hyphens, dots, underscores in your persist config key.