作者:弥囜_550 | 来源:互联网 | 2023-10-10 13:17
importhashlibshuoziyang123+sd23$@#%G@#25#盐ss.encode()mhashlib.sha384(s)#bytes,不可逆resultm.h
import hashlib
s = 'huoziyang123' + 'sd23$@#%G@#25'#盐
s = s.encode()
m = hashlib.sha384(s) #bytes,不可逆
result = m.hexdigest()
def my_md5(s):
s = str(s)
s = s.encode()
m = hashlib.md5(s) # bytes,不可逆
result = m.hexdigest()
return result
print(result)
原文链接:https://www.cnblogs.com/hehaheha/p/14724667.html