Skip to content

Replace MD5 hasher with SHA-256#116

Open
Whning0513 wants to merge 2 commits into
google:masterfrom
Whning0513:replace-md5-with-sha256-109
Open

Replace MD5 hasher with SHA-256#116
Whning0513 wants to merge 2 commits into
google:masterfrom
Whning0513:replace-md5-with-sha256-109

Conversation

@Whning0513

Copy link
Copy Markdown

Summary

  • replace hashlib.md5 with hashlib.sha256 in framework.utils.hasher
  • update the helper docstring to describe the new stable SHA-256 hash
  • add a regression test that checks the digest content and 64-character output

Testing

  • python tf_quant_finance/experimental/pricing_platform/framework/utils_test.py

Closes #109

@google-cla

google-cla Bot commented Jun 29, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace MD5 with SHA-256 in hasher function for improved security

1 participant