Skip to content

Commit

Permalink
Return digest instead of hexdigest
Browse files Browse the repository at this point in the history
  • Loading branch information
fxleblanc committed Oct 12, 2015
1 parent a7d07c3 commit 7cc60c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def get_hash(password, salt):
m = hashlib.sha512()
m.update(salt.encode('utf8'))
m.update(password.encode('utf8'))
hex = m.hexdigest()
binary_hex_digest = binascii.unhexlify(hex)
return binary_hex_digest
return m.digest()


def email_exists(email):
Expand Down

0 comments on commit 7cc60c6

Please sign in to comment.