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

1.1.1 • 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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @geosdi/ngx-crypto-storage

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    20 kB

    Total Files

    11

    Last publish

    Collaborators

    • vito.salvia