Advertisement
TakesxiSximada

binarize question 2

Dec 23rd, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. ipdb> from binarize.primitive import *
  2. ipdb> [a for a in pack_bytes(b'\x06google\x03com\x00')]
  3. [b'\x0c', b'\x06google\x03com\x00']
  4. ipdb> len(b'\x06google\x03com\x00')
  5. 12
  6. ipdb> hex(12)
  7. '0xc'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement