woody-woodpacker/srcs/encrypt.c

11 lines
199 B
C

#include "../includes/woody.h"
void encrypt(char *file, unsigned long int offset, unsigned long int size)
{
size_t i = 0;
while (i < size)
{
file[offset + i] = file[offset + i] - 1;
++i;
}
}