Created
March 4, 2022 07:39
-
-
Save nv-h/ab2d5bb5ebe4f324fb110fdc05ea4e7b to your computer and use it in GitHub Desktop.
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_str = '10010000214601360121470136007EFE09D21901' | |
sum = sum(int(b) for b in bytearray.fromhex(hex_str)) & 0xff | |
print(hex((0x100-(sum)) & 0xff)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment