xor加密

代码如下
text='hello world'
import hashlib
m=hashlib.md5()
m. update(str.encode(text))
m=m.hexdigest()
text='20201324'
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)
print(key)
print(decodem)
 
原文地址:https://www.cnblogs.com/cqszxy2020/p/13910851.html