Python对字符串进行MD5加密处理
import hashlib
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
m = hashlib.md5()
m.update('123456abc')
pas = m.hexdigest()
print pas
E:\work\venv\Scripts\python.exe E:/work/sj_zol/text.pydf10ef8509dc176d733d59549e7dbfafProcess finished with exit code 0