You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tsfile.apache.org by "HTHou (via GitHub)" <gi...@apache.org> on 2024/11/05 08:21:16 UTC

[PR] Fix code scanning alert no. 13: Use of a broken or risky cryptographic algorithm [tsfile]

HTHou opened a new pull request, #289:
URL: https://github.com/apache/tsfile/pull/289

   Fixes [https://github.com/apache/tsfile/security/code-scanning/13](https://github.com/apache/tsfile/security/code-scanning/13)
   
   To fix the problem, we need to replace the use of the MD5 algorithm with a stronger, modern cryptographic algorithm. The SHA-256 algorithm is a suitable replacement as it provides a higher level of security and is widely accepted for cryptographic purposes.
   
   - Replace `MessageDigest.getInstance("MD5")` with `MessageDigest.getInstance("SHA-256")`.
   - Ensure that the rest of the code that processes the digest remains compatible with the new algorithm.
   
   
   _Suggested fixes powered by Copilot Autofix. Review carefully before merging._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix code scanning alert no. 13: Use of a broken or risky cryptographic algorithm [tsfile]

Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou closed pull request #289: Fix code scanning alert no. 13: Use of a broken or risky cryptographic algorithm
URL: https://github.com/apache/tsfile/pull/289


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix code scanning alert no. 13: Use of a broken or risky cryptographic algorithm [tsfile]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #289:
URL: https://github.com/apache/tsfile/pull/289#issuecomment-2456550212

   ## [Codecov](https://app.codecov.io/gh/apache/tsfile/pull/289?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: Patch coverage is `0%` with `1 line` in your changes missing coverage. Please review.
   > Project coverage is 63.63%. Comparing base [(`6c4f911`)](https://app.codecov.io/gh/apache/tsfile/commit/6c4f911f04b78f453adf935b8ab95209c0e1058a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`1d62f04`)](https://app.codecov.io/gh/apache/tsfile/commit/1d62f04f466dc2187ac4f0b9f98040a0bcaff963?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/tsfile/pull/289?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...n/java/org/apache/tsfile/encrypt/EncryptUtils.java](https://app.codecov.io/gh/apache/tsfile/pull/289?src=pr&el=tree&filepath=java%2Ftsfile%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Ftsfile%2Fencrypt%2FEncryptUtils.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-amF2YS90c2ZpbGUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RzZmlsZS9lbmNyeXB0L0VuY3J5cHRVdGlscy5qYXZh) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/tsfile/pull/289?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@           Coverage Diff            @@
   ##           develop     #289   +/-   ##
   ========================================
     Coverage    63.63%   63.63%           
   ========================================
     Files          501      501           
     Lines        31787    31787           
     Branches      4110     4110           
   ========================================
     Hits         20228    20228           
     Misses       11082    11082           
     Partials       477      477           
   ```
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/tsfile/pull/289?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org