Generates XOR key based on file input