from hashlib import sha1
#给password加密
s1 = sha1() #创建sha1加密对象
s1.update(password.encode("utf-8")) #转码(字节流)
password2 = s1.hexdigest() #将字节码转成16进制
from hashlib import sha1
#给password加密
s1 = sha1() #创建sha1加密对象
s1.update(password.encode("utf-8")) #转码(字节流)
password2 = s1.hexdigest() #将字节码转成16进制
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。