react-native-simple-encryption
Version:
Simple XOR and base_64 encryption decryption for react-native
37 lines (25 loc) • 892 B
Markdown
# react-native-simple-encryption
[](https://www.npmjs.com/package/react-native-simple-encryption)
Simple XOR and base_64 encryption decryption for react-native
### Installation in project
```bash
npm install react-native-simple-encryption --save
```
### Demo
###### iOS

###### Android

### Example
##### [example here](https://github.com/BhavanPatel/react-native-simple-encryption/tree/master/Example)
### Sample usage
```javascript
...
import { encrypt, decrypt } from 'react-native-simple-encryption';
...
// encrypt('key','data_to_be_encrypt');
encrypt('key123', 'Hello World');
...
// decrypt('key','encrypted_data');
decrypt('key123', 'IwAVXV0TPAoLXVYS');
```