react-npm-encrypt-decrypt
Advanced tools
Comparing version
{ | ||
"name": "react-npm-encrypt-decrypt", | ||
"version": "1.0.54", | ||
"version": "1.0.55", | ||
"description": "The package used to encrypt and decrypt the data dynamically with keys.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,6 +45,8 @@ // const CryptoJS = require('crypto-js'); | ||
let storageKey = ''; | ||
let storedValue = 0; | ||
let storedValue = 1; | ||
function techusEncryptHandler(value, AES_ENC_SECRET_KEY = SKEY, AES_ENC_IV = IV) { | ||
console.log('storedValue',storedValue); | ||
storedValue = localStorage.getItem('yourStorageKey'); | ||
console.log('storedValue get',storedValue); | ||
// Check if localStorage is available | ||
@@ -81,8 +83,4 @@ apicall(AES_ENC_SECRET_KEY, AES_ENC_IV); | ||
localStorage.setItem('yourStorageKey', storageKey); | ||
console.log('storageKey',storageKey); | ||
storedValue = localStorage.getItem('yourStorageKey'); | ||
console.log('storedValue',storedValue); | ||
} | ||
module.exports = {techusEncryptHandler, apicall}; |
10469
-0.28%207
-0.48%