I have a .bin file, and I want to simply byte reverse the hex data. Say for instance @ 0x10 it reads AD DE DE C0, want it to read DE AD C0 DE.
I know there is a simp
data = b'\xAD\xDE\xDE\xC0' reversed_data = data[::-1] print(reversed_data) # b'\xc0\xde\xde\xad'