Skip to content

Commit

Permalink
Switching to sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Kriss committed Apr 4, 2019
1 parent 3663a9f commit 8ba4157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stethoscope/csrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

def generate_token():
salt = str(urandom.randrange(0, _MAX_CSRF_KEY)).encode('utf-8')
return hashlib.sha1(salt).hexdigest()
return hashlib.sha256(salt).hexdigest()


def _same_origin(url1, url2):
Expand Down

0 comments on commit 8ba4157

Please sign in to comment.