立即学习:https://edu.csdn.net/course/play/24459/296368?utm_source=blogtoedu
hashlib sha算法:
SHA-1算法
对于长度下雨2*64位的消息,生成一个160位的消息摘要
s1 = hashlib.sha1()
>>> s1.update(b'alex')
>>> print(s1.hexdigest())
60c6d277a8bd81de7fdde19201bf9c58a3df08f4
立即学习:https://edu.csdn.net/course/play/24459/296368?utm_source=blogtoedu
hashlib sha算法:
SHA-1算法
对于长度下雨2*64位的消息,生成一个160位的消息摘要
s1 = hashlib.sha1()
>>> s1.update(b'alex')
>>> print(s1.hexdigest())
60c6d277a8bd81de7fdde19201bf9c58a3df08f4