-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace MD5 with Blake2 #1550
Replace MD5 with Blake2 #1550
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces the insecure MD5 hash function with the more secure Blake2b in the hash operator.
- Updated unit and integration tests to validate Blake2b hash outputs instead of MD5.
- Adjusted error messages and documentation to reference Blake2b appropriately, with one noted typo in the docs.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
presidio-anonymizer/tests/operators/test_hash.py | Updated hash tests to replace MD5 with Blake2b. |
presidio-anonymizer/tests/integration/test_anonymize_engine.py | Changed integration tests to validate Blake2b output. |
docs/anonymizer/index.md | Modified documentation to reference Blake2b (note a typo present). |
presidio-anonymizer/presidio_anonymizer/operators/hash.py | Replaced MD5 with Blake2b in the hash operator implementation. |
presidio-anonymizer/README.md | Updated README documentation to include Blake2b details. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Co-authored-by: Omri Mendels <omri374@users.noreply.github.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Change Description
Replace insecure hash function MD5 with Blake2
This PR fixes issue #1541
Checklist