https://github.com/devilkiller-ag/parallel-file-encryptor-using-multiprocessing
Parallel File Encryptor using Multiprocessing in C++
https://github.com/devilkiller-ag/parallel-file-encryptor-using-multiprocessing
Last synced: about 1 year ago
JSON representation
Parallel File Encryptor using Multiprocessing in C++
- Host: GitHub
- URL: https://github.com/devilkiller-ag/parallel-file-encryptor-using-multiprocessing
- Owner: devilkiller-ag
- Created: 2025-01-10T21:10:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-11T10:00:11.000Z (over 1 year ago)
- Last Synced: 2025-01-23T11:36:42.184Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Parallel File Encryptor using Multiprocessing in C++
## Prerequisite to run the project
Create a `.env` file having your `encryption_key` in the project root directory.
## How to run the project?
To run the whole project run these commands in your terminal:
1. `make clean` to clean the project.
2. `make` to build the project.
3. Run `./encrypt_decrypt` to encrypt and decrypt the file.
- It will ask the directory of the files to encrypt/decrypt.
- It will then ask task to perform (ENCRYPT/DECRYPT).
To run the standalone cryption program run these commands in your terminal:
1. `make clean` to clean the project.
2. `make cryption` to build the project.
3. Run `./cryption your_task_data_here` to encrypt/decrypt the data.
- It will ask the task to perform (ENCRYPT/DECRYPT).
### Prerequisite to debug in VS Code
Add following files inside the `.vscode` folder:
1. `launch.json`:
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug encrypt_decrypt",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/encrypt_decrypt",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "build"
},
{
"name": "Debug cryption (standalone)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/cryption",
"args": ["your_task_data_here"],
"cwd": "${workspaceFolder}",
"preLaunchTask": "build"
}
]
}
```
For linux use `"type": "cppdbg"`, for mac use `"type": "lldb"`, and for windows use `"type": "gdb"`.
2. `task.json`:
```json
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "build",
"command": "make",
"args": [],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
```