I'm writing a simple cryptography program that uses ISAAC, and I've run into a wall. I am planning on XORing each of my input bytes with 1 random byte each that gets returned from the ISAAC PRNG.
This is basically what I'm trying to do
while(input character != EOF){
read a byte of input;
xor that byte with a random byte from ISAAC;
print that byte;
}
I can't seem how to limit the uint32_t that gets returned from the prng to a single byte, instead I have several. What can I do to isolate a byte from a uint32_t typedef?