@geosdi/ngx-crypto-storage
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i @geosdi/ngx-crypto-storage

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

19.9 kB

Total Files

12

Last publish

Collaborators

  • vito.salvia