Created
July 21, 2011 17:36
-
-
Save b1naryth1ef/1097718 to your computer and use it in GitHub Desktop.
Hashing/Timing 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 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