@geosdi/ngx-crypto-storage
v1.1.1
Published
Utils Services
Downloads
10
Maintainers
Readme
NgxCryptoStorage
This library was generated with Angular CLI version 13.0.0.
General information
Service encrypt value for local storage
Installation
npm i @geosdi/ngx-crypto-storage --save
It depends on :
"@angular/common": ">=13.0.0",
"@angular/core": ">=13.0.0",
"typescript": ">=4.4.4"
"crypto-js": "^4.1.1",
"secure-web-storage": "^1.0.2",
"@types/crypto-js": "^4.0.2",
"@types/node": "^16.11.7",
Usage
Imports: NgxCryptoStorageService service
Methods
| Method | action | ------------- | ------------- | | setJsonValue(key, value) | Encrypt value in key for local storage| | clearToken() | Clear local storage| | this.ngxCryptoStorageService.removeItem(key) | Remove key from local storage|