🔧 Add FIPS compliant flag to md5 call#162
Conversation
|
Thanks for submitting your first pull request! You are awesome! 🤗 |
|
Heya, |
Ah indeed, and I thought it was just a nice one-line PR :) |
They never are 😂 |
So I am not too proficient with has_usedforsecurity_support = float(sys.version[:3]) >= 3.9Or something with the And then just use something like: md5_kwargs = {"usedforsecurity": False} if has_usedforsecurity_support else {}
hash = hashlib.md5(content.encode("utf8"), **md5_kwargs ).hexdigest() |
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
|
@chrisjsewell do you think this is sufficient? I'll use my fork until the next release. |
Yep I think it's fine but bare with me to merge |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #162 +/- ##
==========================================
+ Coverage 89.18% 90.01% +0.82%
==========================================
Files 11 11
Lines 962 951 -11
==========================================
- Hits 858 856 -2
+ Misses 104 95 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
chrisjsewell
left a comment
There was a problem hiding this comment.
Sorry for the wait but all good now, and removed 3.9 check as 3.8 was dropped 😄

Closes #161