Created
July 21, 2011 17:12
-
-
Save b1naryth1ef/1097651 to your computer and use it in GitHub Desktop.
Original Hashing Method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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