This library was generated with Angular CLI version 13.0.0.
Service encrypt value for local storage
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",
Imports: NgxCryptoStorageService service
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 |