Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf8 -*-
- import string
- pub = '5e8a88305912b43d10e20a3a536098b1'
- encoded = '223:261:190:262:271:118:199:198:252:208:247:203:297:208:250:254:249:201:301:206:249:251:252:260:202:112:235:210:261:212:297:114:254:257:252:246:266:226'
- encoded = encoded.split(':')
- for c1 in string.printable:
- for c2 in string.printable:
- for c3 in string.printable:
- for c4 in string.printable:
- key = c1 + c2 + c3 + c4
- s = ''
- try:
- for i in range(len(key)):
- s += chr( int(encoded[i]) - ord(pub[i % len(pub)]) - ord(key[i % len(key)]))
- if (s[len(s) - 1] not in string.ascii_letters):
- s=''
- break
- if len(s) == len(key):
- print key, s
- except:
- pass
- print c1
Advertisement
Add Comment
Please, Sign In to add comment