Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 3YOURMIND#292 Run in FIPS enabled environment with python3.10
Python 3.10 and later versions rely on OpenSSL 1.1.1 or newer, which includes FIPS-compliance checks. MD5 is not an approved algorithm in FIPS mode, so attempting to instantiate hashlib.md5() will fail when the system is running in FIPS mode. Since MD5 is used in a non-security context, the change adds the [_usedforsecurity_](https://docs.python.org/3/library/hashlib.html) flag. The same issue in Django django/django@d10c7bf
- Loading branch information