Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Created July 21, 2011 17:12
Show Gist options
  • Select an option

  • Save b1naryth1ef/1097651 to your computer and use it in GitHub Desktop.

Select an option

Save b1naryth1ef/1097651 to your computer and use it in GitHub Desktop.
Original Hashing Method
import hashlib, sys
sys.setrecursionlimit(11000)
def rec(inputy,x):
x += 1
def md5y(iny):
return hashlib.md5(str(iny)).digest()
def sha512y(iny):
return hashlib.sha512(str(iny)).hexdigest()
z1 = md5y(inputy)
z2 = sha512y(z1)
return (z2,x)
y = 0
def a1(inp):
if inp[1] < 10000:
c = rec(inp[0],inp[1])
a2(c)
else:
print inp[0]
print inp[1]
def a2(inp):
if inp[1] < 10000:
b = rec(inp[0],inp[1])
a1(b)
else:
print inp[0]
print inp[1]
z = a1(("Hello World",0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment