cpp-crypter
Advanced tools
+1
-1
| { | ||
| "name": "cpp-crypter", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "A package to encrypt and run a C++ program", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+20
-20
@@ -15,11 +15,11 @@ # cpp-crypter | ||
| \``` | ||
| ``` | ||
| npm install -g cpp-crypter | ||
| \``` | ||
| ``` | ||
| or | ||
| \``` | ||
| ``` | ||
| npm install cpp-crypter | ||
| \``` | ||
| ``` | ||
@@ -32,11 +32,11 @@ ## Usage | ||
| \``` | ||
| ``` | ||
| npx cpp-crypter encrypt <input_file> <output_file> <key> | ||
| \``` | ||
| ``` | ||
| **Example:** | ||
| \``` | ||
| ``` | ||
| npx cpp-crypter encrypt ./hello ./hello.enc mysecretkey | ||
| \``` | ||
| ``` | ||
@@ -49,11 +49,11 @@ This command encrypts the `hello` executable and outputs the encrypted file as `hello.enc` using the key `mysecretkey`. | ||
| \``` | ||
| ``` | ||
| node index.js <encrypted_file> <key> | ||
| \``` | ||
| ``` | ||
| **Example:** | ||
| \``` | ||
| ``` | ||
| node index.js ./hello.enc mysecretkey | ||
| \``` | ||
| ``` | ||
@@ -68,3 +68,3 @@ This command decrypts the `hello.enc` file using the key `mysecretkey` and runs the decrypted executable. | ||
| \``` | ||
| ``` | ||
| #include <iostream> | ||
@@ -76,21 +76,21 @@ | ||
| } | ||
| \``` | ||
| ``` | ||
| 2. Compile the C++ program: | ||
| \``` | ||
| ``` | ||
| g++ hello.cpp -o hello | ||
| \``` | ||
| ``` | ||
| 3. Encrypt the executable: | ||
| \``` | ||
| ``` | ||
| npx cpp-crypter encrypt ./hello ./hello.enc mysecretkey | ||
| \``` | ||
| ``` | ||
| 4. Decrypt and run the executable: | ||
| \``` | ||
| ``` | ||
| node index.js ./hello.enc mysecretkey | ||
| \``` | ||
| ``` | ||
@@ -97,0 +97,0 @@ ## License |
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
4986
-0.4%