cpp-crypter
Advanced tools
+5
-4
@@ -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); |
+5
-4
@@ -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); |
+1
-1
| { | ||
| "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", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4952
-0.68%80
-2.44%