Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib,base64
- def Sha1(text):
- sha1 = hashlib.sha1()
- sha1.update(text.encode())
- return sha1.hexdigest()
- def CharXor(text,keys):
- res = ''
- for i in range(len(text)):
- res += chr(ord(text[i])^ord(keys[i%len(keys)]))
- return res
- def GetSeed2(lvlstr):
- mix = ''
- rep = len(lvlstr)//50
- for i in range(50):
- mix += (lvlstr[rep*i])
- return base64.b64encode(CharXor(Sha1(mix+'xI25fpAapCQg'),'41274').encode()).decode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement