import hashlib
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
m = hashlib.md5()
m.update('123456abc')
pas = m.hexdigest()
print pas
E:workvenvScriptspython.exe E:/work/sj_zol/text.pydf10ef8509dc176d733d59549e7dbfafProcess finished with exit code 0