标签:key his ascii encrypt python nbsp imp bin sci
import pyDes
python -c "import pyDes; des = pyDes.des(‘This Key‘); print des.encrypt(‘SomeData‘).encode(‘hex‘)"
but KEY must 8 、16、24
import binascii
binascii.hexlify(data)
标签:key his ascii encrypt python nbsp imp bin sci
原文地址:http://www.cnblogs.com/crac/p/7233831.html