mula
2008-10-17 14:31:37 UTC
while((n = read(inFile, buffer, BUFFSIZE)) > 0)
{
unsigned rand_byte;
rand_byte = rand(); //sets rand_byte to random number
rand_byte = rand_byte % 256; //mods the random byte by 256
*buffer = *buffer^(unsigned char)rand_byte;
write(outFile, buffer, BUFFSIZE); //sets XORed byte to outFile
n++;
}