@pmishra0/react-native-aes-gcm 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,11 +12,20 @@ npm install react-native-aes-gcm
12
12
 
13
13
 
14
14
  ```js
15
- import { multiply } from 'react-native-aes-gcm';
15
+ import { encrypt, decrypt } from 'react-native-aes-gcm';
16
16
 
17
17
  // ...
18
18
 
19
- const result = multiply(3, 7);
19
+ const encrypted = await encrypt(text, key, iterations).catch((e) => {
20
+ console.log('Error Enctyption:: ', e);
21
+
22
+ });
23
+
24
+ const decrypted = await decrypt(text, key, iterations).catch((e) => {
25
+ console.log('Error:: ', e);
26
+
27
+ });
28
+
20
29
  ```
21
30
 
22
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmishra0/react-native-aes-gcm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "AES-GCM encryption/decryption for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",