New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cpp-crypter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpp-crypter - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+5
-4
bin/decrypt.js

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

#!/usr/bin/env node
const fs = require('fs');
const path = require('path');

@@ -20,4 +21,5 @@ const xorDecrypt = (input, key) => {

const args = process.argv.slice(2);
if (args.length !== 3) {
const [,, inputFile, outputFile, key] = process.argv;
if (!inputFile || !outputFile || !key) {
console.error('Usage: decrypt <input_file> <output_file> <key>');

@@ -27,3 +29,2 @@ process.exit(1);

const [inputFile, outputFile, key] = args;
decryptFile(inputFile, outputFile, key);

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

#!/usr/bin/env node
const fs = require('fs');
const path = require('path');

@@ -20,4 +21,5 @@ const xorEncrypt = (input, key) => {

const args = process.argv.slice(2);
if (args.length !== 3) {
const [,, inputFile, outputFile, key] = process.argv;
if (!inputFile || !outputFile || !key) {
console.error('Usage: encrypt <input_file> <output_file> <key>');

@@ -27,3 +29,2 @@ process.exit(1);

const [inputFile, outputFile, key] = args;
encryptFile(inputFile, outputFile, key);
{
"name": "cpp-crypter",
"version": "1.0.1",
"version": "1.0.2",
"description": "A package to encrypt and run a C++ program",

@@ -5,0 +5,0 @@ "main": "index.js",