Defines the main file processing function for evo-crypter. More...
#include <stdbool.h>
Go to the source code of this file.
Functions | |
void | evolve_file (const char *input_file, const char *output_file, const char *generations, int threads, bool decrypt) |
Encrypts or decrypts a file using the specified mutations. | |
Defines the main file processing function for evo-crypter.
void evolve_file | ( | const char * | input_file, |
const char * | output_file, | ||
const char * | generations, | ||
int | threads, | ||
bool | decrypt | ||
) |
Encrypts or decrypts a file using the specified mutations.
This function is the main entry point for file processing. It takes an input file, an output file, a generation sequence, the number of threads to use, and a flag indicating whether to decrypt or encrypt. It then applies the specified mutations iteratively to the input file and writes the result to the output file.
input_file | The path to the input file. |
output_file | The path to the output file. |
generations | The generation sequence string. |
threads | The number of threads to use for processing. |
decrypt | A flag indicating whether to decrypt (true ) or encrypt (false ). |