Created
June 12, 2012 07:25
-
-
Save elvisds/2915877 to your computer and use it in GitHub Desktop.
Get linkedin hashes
This file contains 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
def check_pass(offset=5): | |
from getpass import getpass | |
from hashlib import sha1 | |
hashed = sha1(getpass()).hexdigest() | |
return (hashed, '0' * offset + hashed[offset:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment