github.com/jincm/wesharechain@v0.0.0-20210122032815-1537409ce26a/server/block/util/encrypt_md5.py (about) 1 #!/usr/bin/python 2 # -*- coding: UTF-8 -*- 3 4 5 import hashlib 6 7 def encry_md5(v): 8 m = hashlib.md5() 9 m.update(v) 10 return m.hexdigest()