使用MD5进行加密
2019-03-07 本文已影响1人
飞跑的蛤蟆

>>> 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