https://github.com/chaudhryjunaid/redux-persist-encrypted-async-storage
Redux persist storage engine that provides an encryption layer over async storage
https://github.com/chaudhryjunaid/redux-persist-encrypted-async-storage
aes-encryption asyncstorage keychain keystore react-native redux-persist redux-storage redux-storage-engine
Last synced: 10 months ago
JSON representation
Redux persist storage engine that provides an encryption layer over async storage
- Host: GitHub
- URL: https://github.com/chaudhryjunaid/redux-persist-encrypted-async-storage
- Owner: chaudhryjunaid
- License: mit
- Created: 2019-01-23T13:52:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T12:34:48.000Z (over 5 years ago)
- Last Synced: 2025-06-07T22:41:05.417Z (about 1 year ago)
- Topics: aes-encryption, asyncstorage, keychain, keystore, react-native, redux-persist, redux-storage, redux-storage-engine
- Language: JavaScript
- Size: 24.4 KB
- Stars: 12
- Watchers: 2
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redux-persist-encrypted-async-storage
Redux persist storage engine that provides an encryption layer over async storage
### What this project provides
This project provides an AES encryption layer (using a randomly generated secure key stored in keychain/keystore) over AsyncStorage for react-native projects
### To install in your project:
First install `react-native-keychain`. Then:
```
yarn add 'https://github.com/chaudhryjunaid/redux-persist-encrypted-async-storage.git#master'
```
OR
```
npm i 'https://github.com/chaudhryjunaid/redux-persist-encrypted-async-storage.git#master'
```
### Usage:
```
import createStorage from 'redux-persist-encrypted-async-storage';
const rootPersistConfig = {
key: 'root',
storage: createStorage()
};
const rootReducer = combineReducers({
key: keyReducer
});
export default persistReducer(rootPersistConfig, rootReducer);
```
### API
```
createStorage({ service?: string }): Storage
```
Service is the service key used to store the secure key in keychain/keystore using react-native-keychain. See react-native-keychain for more details. Default service value is: `com.redux-persist-encrypted-async-storage`