Python for Hacking - WolvSec/Knowledge-Base GitHub Wiki

Turning a number into a hexadecimal string with hex:

>>> hex(11)
'0xb'

Turning a character into its numeric representation with ord

>>> ord('A')
65

Turning a number into its character representation with chr

>>> chr(66)
'B'

This should be for quick operations. Any actual work should be done with pwntools or a similar library