🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-npm-encrypt-decrypt

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-npm-encrypt-decrypt - npm Package Compare versions

Comparing version

to
1.0.1

Readme.md

5

index.js

@@ -0,1 +1,3 @@

const CryptoJS = require('crypto-js');
function decryptJSONHandler(value, AES_ENC_SECRET_KEY, AES_ENC_IV) {

@@ -14,2 +16,5 @@ const key = CryptoJS.enc.Utf8.parse(AES_ENC_SECRET_KEY);

function encryptJSONHandler(value, AES_ENC_SECRET_KEY, AES_ENC_IV) {
console.log(value)
console.log(AES_ENC_SECRET_KEY)
console.log(AES_ENC_IV)
const key = CryptoJS.enc.Utf8.parse(AES_ENC_SECRET_KEY);

@@ -16,0 +21,0 @@ const iv = CryptoJS.enc.Utf8.parse(AES_ENC_IV);

11

package.json
{
"name": "react-npm-encrypt-decrypt",
"version": "1.0.0",
"version": "1.0.1",
"description": "The package used to encrypt and decrypt the data dynamically with keys.",

@@ -10,3 +10,10 @@ "main": "index.js",

"author": "techus",
"license": "ISC"
"license": "ISC",
"keywords": [
"encrypt"
],
"dependencies": {
"crypto-js": "^4.2.0",
"react-npm-encrypt-decrypt": "^1.0.0"
}
}
script.js