echo base64encode(pack('H*','cfcd208495d565ef66e7dff9f98764da')); |
from struct import pack,unpack from base64 import b64decode def dechex(n): """return the hexadecimal string representation of integer n""" return "%x" % n a=b64decode('z80ghJXVZe9m59/5+Ydk2g==') b=unpack('16B',a) print b d=[] for i in b: d.append(dechex(i)) print d |
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |