Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Created July 21, 2011 17:17
Show Gist options
  • Save b1naryth1ef/1097668 to your computer and use it in GitHub Desktop.
Save b1naryth1ef/1097668 to your computer and use it in GitHub Desktop.
Better Hashing Method
import hashlib
count = 1000
def func(f2):
x = 0
while x < count:
x += 1
f1 = hashlib.md5(str(f2)).digest()
f2 = hashlib.sha512(str(f1)).hexdigest()
print f2
func("Hello World!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment