| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple C program that implements a custom encryption algorithm for text files based on the Feistel network structure.
This program provides basic file encryption and decryption functionality using a simplified Feistel network cipher. It processes input files byte-by-byte, converting each character using a non-linear function and rounds of encryption.
IMPORTANT: This implementation is a proof-of-concept only and should NOT be used for securing sensitive information. It lacks many essential security features of modern cryptographic systems including:
This program is intended purely for educational purposes to demonstrate the basic concepts of a Feistel network.
Compile the program:
gcc -o cipher cipher.c
./cipher encrypt
This reads from sample.txt and creates an encrypted cipher.dat file.
./cipher decrypt
This reads from cipher.dat and creates a decrypted decrypted.txt file.
This program implements a simplified version of a Feistel network, a structure used in many block ciphers including DES. Key characteristics of Feistel networks:
The program uses a simplified Feistel structure with:
The encryption process (fn_round()):
The decryption process (fn_deround()) reverses these operations
| Back | FazBrowse Home | New Git URL |