Skip to content

Commit 80f9f55

Browse files
committed
fix: merge conflict
1 parent abd75a0 commit 80f9f55

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
## How to use
55
* Use ``npm i crypto-browser-storage``
66
* Inject to your component or service as Dependency Injection
7-
* Then you will be able to access `crypto-browser-storage`'s library functions,
8-
- setCache
9-
- getCache
10-
- removeCacheByKey
11-
- clearAllCache
7+
* Then you will be able to access `crypto-browser-storage`'s library functions,
8+
- setCache
9+
- getCache
10+
- removeCacheByKey
11+
- clearAllCache
1212

1313
<br>
1414

@@ -17,7 +17,23 @@
1717
- For `ng v12.x.x` use `npm i crypto-browser-storage@1.0.3`
1818
- For `ng v14.x.x` use `npm i crypto-browser-storage@1.4.0`
1919
- For `ng v15.x.x` use `npm i crypto-browser-storage@2.1.0`
20-
- For `ng v16.0.0` use `npm i crypto-browser-storage@3.0.0`
20+
- For `ng v16.x.x` use `npm i crypto-browser-storage@3.0.0`
21+
- For `ng v17.x.x` use `npm i crypto-browser-storage@4.0.2`
22+
23+
## For Angular Version 17 (only) 🎉
24+
25+
Now you can provide your custom encryption key. To provide your custom encryption key you have to follow this instruction.
26+
Provide `CRYPTO_HASH_KEY` in `app.module.ts`. <br>
27+
Example:
28+
29+
```
30+
providers: [
31+
....
32+
CryptoBrowserStorageService,
33+
{ provide: CRYPTO_HASH_KEY, useValue: 'YOUR_KEY_HERE' }
34+
]
35+
36+
```
2137

2238
<br>
2339

@@ -59,3 +75,4 @@ constructor(private cache: CryptoBrowserStorageService) {}
5975
![Screenshot 2021-10-30 204648](https://user-images.githubusercontent.com/37630292/139538058-0fa32585-bc84-4518-b6e9-cec7d38545a8.png)
6076

6177
![Screenshot 2021-10-30 205713](https://user-images.githubusercontent.com/37630292/139538317-9e63a3fd-fe0a-406e-9573-a215bf56a30d.png)
78+
~~~~

0 commit comments

Comments
 (0)