instead of sprintf for each xor just encode string as hex at end