Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import base64
import random
from hashlib import *
remain_str = set('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/+=')
source_str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
for x in range(10000) :
base64str1 = base64.b64encode("".join([random.choice(source_str) for x in xrange(512)]))
base64str2 = base64.b64encode("".join([random.choice(source_str) for x in xrange(512)]))
for (i, j) in zip(base64str1, base64str2) :
if i == j :
remain_str -= set([i])
print remain_str
print sha1(''.join(sorted(list(remain_str)))).hexdigest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment