Skip to content

Commit

Permalink
💚 mark that hash is not used for security
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed Jun 1, 2022
1 parent fc0a59b commit 7b825c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/open_inwoner/utils/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

def generate_email_from_string(value: str) -> str:
"""generate email address based on string"""
hashed_bsn = md5(value.encode()).hexdigest()
hashed_bsn = md5(value.encode(), usedforsecurity=False).hexdigest()

return f"{hashed_bsn}@example.org"

0 comments on commit 7b825c1

Please sign in to comment.