nedbat / cog

Small bits of Python computation for static files
MIT License
340 stars 26 forks source link

Support FIPS mode where possible #27

Closed khanfluence closed 9 months ago

khanfluence commented 10 months ago

Closes #26.

I think the least invasive change to support FIPS mode is to pass usedforsecurity=False to hashlib.md5 if the argument is available on the system. This lets Cog work for FIPS systems running Python 3.9 or newer.

nedbat commented 9 months ago

Thanks!