evo-crypter
 
Loading...
Searching...
No Matches
mod.c File Reference
#include "mod.h"
#include "../mutations/mod.h"
#include "input_processing.h"
#include "utils.h"
#include <pthread.h>

Macros

#define BUFFER_SIZE   1024
 

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.
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

Function Documentation

◆ evolve_file()

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.

Parameters
input_fileThe path to the input file.
output_fileThe path to the output file.
generationsThe generation sequence string.
threadsThe number of threads to use for processing.
decryptA flag indicating whether to decrypt (true) or encrypt (false).