Skip to content

Instantly share code, notes, and snippets.

@MattSegal
Last active October 10, 2017 00:13
Show Gist options
  • Save MattSegal/ace564384b6d60ea138e86fb1149f989 to your computer and use it in GitHub Desktop.
Save MattSegal/ace564384b6d60ea138e86fb1149f989 to your computer and use it in GitHub Desktop.
import hashlib
user_password = 'hunter12'
database_password = '6618f892842dcbc32f7968cc8f73b5b0065ec04e'
salt = '#&@#DH@HDHUUS'
user_password_hashed = hashlib.sha1(user_password + salt).hexdigest()
print(user_password_hashed == user_password_hashed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment