Skip to content

Instantly share code, notes, and snippets.

@xavierskip
Last active July 25, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xavierskip/dd299dae7eb8a6751c2ed450d0ef5dcf to your computer and use it in GitHub Desktop.
Save xavierskip/dd299dae7eb8a6751c2ed450d0ef5dcf to your computer and use it in GitHub Desktop.
s="4963654354467b66616c6c735f61706172745f736f5f656173696c795f616e645f7265617373656d626c65645f736f5f63727564656c797d"
step=2
print("".join([chr(int("".join(s[i:i+step]),16)) for i in range(0,len(s),step)]))
# or
print(bytes.fromhex(s).decode('utf-8'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment