Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#encryption

C-Encryption-Tool (C File Encryption Tool) A simple and high-performance program developed in C for encrypting and decrypting files using a modified Caesar Cipher algorithm that supports the full range of printable characters in the ASCII table.

##🛠 Features Protected Encryption: The key is added to the beginning of the encrypted file to ensure future decryption.

High Accuracy: Uses system calls for direct file manipulation (open, read, write, lseek) to ensure speed.

Compatibility: No character distortion thanks to the Modulo 95 modulator.

##🚀 How to Use Download: Copy the project files to your computer.

Compilation:

Use the GCC compiler to compile the files:

Bash gcc main.c -o enc_tool Usage:

Run the program:

Bash ./enc_tool Enter the path to the file you want to encrypt (e.g., test.txt).

The program will automatically encrypt and store the key within the file itself.

##💡 How it works?

Encryption: The program generates a random key (rand()) and offsets each character by the value of this key while keeping it within the ASCII code.

Decryption: The program reads the first bytes of the file to extract the key, then subtracts the offset to restore the original text.

##⚠️ Technical Notes This project is designed to work on Linux/Unix systems that support unistd.h and fcntl.h.

Make sure you have read and write permissions for the files you are working on.

👨‍💻 Contribute This project is open for development! You can add features such as:

Support for encrypting large files using malloc.

Adding the option to manually select the key.

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages