This C program provides a simple tool to encrypt and decrypt files using the XOR encryption method. You can compile the program either using the provided Makefile
or manually with gcc
.
./bin
: Directory to store the built executable../src
: Source code of the program.
Before you get started, ensure you have the following prerequisites:
- GCC (GNU Compiler Collection) installed on your system.
You have two options to compile the program:
-
Open a terminal.
-
Navigate to the project directory.
-
Run the following command to build the executable:
make install
-
Open a terminal.
-
Navigate to the project directory.
-
Run the following command to build the executable:
gcc -o ./bin/file-encrypt ./src/file-encrypt.c
To encrypt a file, run the following command:
./bin/file-encrypt <input-file> <output-encryped-file>
To decrypt a file, run the following command:
./bin/file-encrypt <input-encryped-file> <output-file>
To clean up the project directory, run the following command:
make clean
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.