Skip to content

Instantly share code, notes, and snippets.

@swang373
Created July 21, 2023 14:17
Show Gist options
  • Save swang373/c8290a522ce7cde573ac013729bb3f38 to your computer and use it in GitHub Desktop.
Save swang373/c8290a522ce7cde573ac013729bb3f38 to your computer and use it in GitHub Desktop.
Hex to ASCII conversion in Python
import binascii
HEXSTRING = (
'546869732069732066696e652e2049276d206f6b61792077697468207468'
'65206576656e747320746861742061726520756e666f6c64696e67206375'
'7272656e746c792e20546861742773206f6b61792c207468696e67732061'
'726520676f696e6720746f206265206f6b61792e0a'
)
print(binascii.unhexlify(HEXSTRING))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment