天之骄子的自我救赎之路...... 埋着头,向前走,寻找我自己......
m=hashlib.md5() m.update('hello'.encode('utf8')) #用md5算法对'hello'进行加密 print(m.hexdigest()) #查看密文
s=hashlib.sha3_256() s.update('hello'.encode('utf8')) print(s.hexdigest())
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3