Added bytes_to_hex() function
Added fixed xor.