python hashlib 密码输入
#coding=utf-8import hashlib
while True:
p = hashlib.sha256()
p.update(input("请输入密码:").encode())
if p.hexdigest() == 'ee866d8b8e85a4df800b96bedee8897dae1cb5f035b5bdaca78de257e2601e58':
print('密码输入正确!')
break
print('密码错误!')
页:
[1]