Skip to content

bahirul/file-encrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Encryptor/Decryptor

Overview

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.

Table of Contents

Project Directory Structure

  • ./bin: Directory to store the built executable.
  • ./src: Source code of the program.

Prerequisites

Before you get started, ensure you have the following prerequisites:

  • GCC (GNU Compiler Collection) installed on your system.

How to Compile

You have two options to compile the program:

Option 1: Using the Makefile

  1. Open a terminal.

  2. Navigate to the project directory.

  3. Run the following command to build the executable:

    make install

Option 2: Manually

  1. Open a terminal.

  2. Navigate to the project directory.

  3. Run the following command to build the executable:

    gcc -o ./bin/file-encrypt ./src/file-encrypt.c

Usage

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>

Cleaning Up

To clean up the project directory, run the following command:

make clean

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Simple file encryption learning project with C lang

Resources

License

Stars

Watchers

Forks

Packages

No packages published