Skip to content
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

GROOVY-11459: MD5 is already an insecure hash algorithm, replacing it with SHA256 i… #2112

Merged
merged 6 commits into from
Sep 12, 2024

Conversation

zhangwei911
Copy link
Contributor

@zhangwei911 zhangwei911 commented Sep 6, 2024

@zhangwei911 zhangwei911 changed the title MD5 is already an insecure hash algorithm, replacing it with SHA256 i… GROOVY-11459: MD5 is already an insecure hash algorithm, replacing it with SHA256 i… Sep 8, 2024
@paulk-asert
Copy link
Contributor

Thanks for your contributions to this topic. I did a little bit more performance testing and think this topic deserves more discussion. I'll add some results into the corresponding Jira issue and create an email on the dev list shortly. We'll likely make some changes similar to what you are suggesting but some assumptions about algorithm speed weren't as I expected.

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 8 lines in your changes missing coverage. Please review.

Project coverage is 68.6751%. Comparing base (6cd477b) to head (aed169b).
Report is 238 commits behind head on master.

Files with missing lines Patch % Lines
src/main/java/groovy/lang/GroovyClassLoader.java 42.8571% 6 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##               master      #2112        +/-   ##
==================================================
+ Coverage     68.5957%   68.6751%   +0.0794%     
- Complexity      29233      29404       +171     
==================================================
  Files            1426       1426                
  Lines          113494     113635       +141     
  Branches        19548      19599        +51     
==================================================
+ Hits            77852      78039       +187     
+ Misses          29088      29048        -40     
+ Partials         6554       6548         -6     
Files with missing lines Coverage Δ
src/main/java/groovy/lang/GroovyClassLoader.java 71.0456% <42.8571%> (-0.4613%) ⬇️

... and 53 files with indirect coverage changes

@paulk-asert paulk-asert merged commit 22d10db into apache:master Sep 12, 2024
18 checks passed
@paulk-asert
Copy link
Contributor

I'll merge and refactor to be halfway between your suggestion and what I have been doing for testing. Thanks!

@zhangwei911
Copy link
Contributor Author

zhangwei911 commented Sep 12, 2024 via email

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.

3 participants