This C# console application provides a simple file encryption and decryption utility using a basic byte-shifting cipher.
- Encrypt Files: Encrypts all files in a specified directory (including subdirectories) with a chosen file extension.
- Decrypt Files: Decrypts previously encrypted files back to their original state.
- .NET Core SDK installed on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/your-username/your-repository.git cd your-repository
-
Open a terminal or command prompt and navigate to the project directory.
-
Compile the project:
dotnet build
-
Run the application with the following command-line arguments:
dotnet run <encrypt/decrypt> <directory_path> <file_extension>
<encrypt/decrypt>
: Specifyencrypt
ordecrypt
to choose the operation.<directory_path>
: Path to the directory containing files to encrypt/decrypt.<file_extension>
: File extension of the files to process (e.g.,txt
,pdf
,*
for all files).
Example:
dotnet run encrypt /path/to/your/directory txt
-
Follow the on-screen instructions and check the console output for status updates.
Encrypt all .txt
files in /path/to/your/directory
:
dotnet run encrypt /path/to/your/directory txt
Decrypt all previously encrypted files:
dotnet run decrypt /path/to/your/directory txt
This project is licensed under the MIT License - see the LICENSE file for details.