Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save b1naryth1ef/1097718 to your computer and use it in GitHub Desktop.
Hashing/Timing method
import time, hashlib
end = time.time() + 1
f2 = "Hello World"
x = 0
while time.time() < end:
x += 1
f1 = hashlib.md5(str(f2)).digest()
f2 = hashlib.sha512(str(f1)).hexdigest()
print f2,x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment