On how to use Python library implementation hashlib MD5 encryption

import hashlib
 
a = []
md = hashlib.md5()
pwd = '123456'
md_pwd = bytes(pwd, , encoding='UTF-8')
md.update(md_pwd)
# The password is encrypted added to an empty list 
a.append (md.hexdigest ())

Feeling okay, then praise it a point to help

Guess you like

Origin www.cnblogs.com/ldpgg/p/12651639.html