Skip to content

Commit

Permalink
Merge pull request #44 from akatsoulas/use-sha1
Browse files Browse the repository at this point in the history
Replace sh224 with sha1 in username_algo.
  • Loading branch information
akatsoulas committed Nov 4, 2016
2 parents 8326b68 + 30f2104 commit 01ed6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozilla_django_oidc/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def default_username_algo(email):
# this protects against data leakage because usernames are often
# treated as public identifiers (so we can't use the email address).
return base64.urlsafe_b64encode(
hashlib.sha224(smart_bytes(email)).digest()
hashlib.sha1(smart_bytes(email)).digest()
).rstrip(b'=')


Expand Down

0 comments on commit 01ed6d1

Please sign in to comment.