Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke thomaspatzke/hexdump.py
Last active Aug 29, 2015

Embed
What would you like to do?
Hex-only dump in Python in one line
print("\n".join([" ".join(["{:02x}".format(c) for c in bin[i:i+16]]) for i in range(0, len(bin), 16)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.