>>> import hashlib
>>> obj = hashlib.md5()
>>> obj.update("123456".encode('utf-8'))
>>> print(obj.hexdigest())
e10adc3949ba59abbe56e057f20f883e
>>> import hashlib
>>> obj = hashlib.md5()
>>> obj.update("123456".encode('utf-8'))
>>> print(obj.hexdigest())
e10adc3949ba59abbe56e057f20f883e
本文标题:使用MD5进行加密
本文链接:https://www.haomeiwen.com/subject/iivhpqtx.html
网友评论