Created
November 22, 2020 18:51
-
-
Save Kalbra/ad780cde9e1b82563e707ccc681c2877 to your computer and use it in GitHub Desktop.
Converts little endian hexadezimal into big endian and the other way round
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hex_reverse = "" | |
for h in [hex[i:i + 2] for i in range(0, len(hex), 2)][::-1]: | |
hex_reverse += h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment