python: print a string as hex bytes










':'.join(x.encode('hex') for x in 'Hello World!')



Executes in python CLI:

>>> ':'.join(x.encode('hex') for x in 'Hello World!')
'48:65:6c:6c:6f:20:57:6f:72:6c:64:21'



No comments:

Post a Comment