apache / tsfile

Apache TsFile
https://tsfile.apache.org/
Apache License 2.0
104 stars 50 forks source link

Fix code scanning alert no. 7: Use of a broken or risky cryptographic algorithm #286

Closed HTHou closed 2 weeks ago

HTHou commented 2 weeks ago

Fixes https://github.com/apache/tsfile/security/code-scanning/7

To fix the problem, we should replace the use of the MD5 algorithm with a stronger, modern cryptographic hash function such as SHA-256. This change will enhance the security of the cryptographic operations performed by the code.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

codecov-commenter commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 63.63%. Comparing base (6c4f911) to head (ad1a4b0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #286 +/- ## ======================================== Coverage 63.63% 63.63% ======================================== Files 501 501 Lines 31787 31787 Branches 4110 4110 ======================================== Hits 20228 20228 Misses 11082 11082 Partials 477 477 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.