Skip to content

Instantly share code, notes, and snippets.

@elvisds
Created June 12, 2012 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elvisds/2915877 to your computer and use it in GitHub Desktop.
Save elvisds/2915877 to your computer and use it in GitHub Desktop.
Get linkedin hashes
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