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.0
to
1.0.1
+1
-1
package.json
{
"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