提交代码
text=‘hello world‘
import hashlib
m=hashlib.md5()
m. update(str.encode(text))
m=m.hexdigest()
import uuid
res=str(uuid.uuid4())
res=res.replace(‘-‘,‘‘)
key=res[:32]
a=int(m,16)
b=int(key,16)
c=a^b
e=c^b
decodem=hex(e)
cipertext=hex(c)
print(m)
5eb63bbbe01eeed093cb22bb8f5acdc3print(key)
ce39cb26a5f74ea788815fe95d698005print(cipertext)
0x908ff09d45e9a0771b4a7d52d2334dc6print(decodem)
0x5eb63bbbe01eeed093cb22bb8f5acdc320201329
20201329
或参考MD5算法使用(https://www.cnblogs.com/sxqfuture/p/9982188.html)
原文:https://www.cnblogs.com/weihehahaha/p/13910519.html