-
Notifications
You must be signed in to change notification settings - Fork 81
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
Use of md5 for object IDs makes this module fail on FIPS-enabled machines #85
Comments
What was your code? |
It never even gets to our code -- simply opening up a Python shell on a FIPS system and typing
|
@Parkayun the code is just importing from bson.objectid. The problem is that we're trying to run this in FIPS mode which prevents the use of insecure algorithms. From the Python hashlib docs:
Any chance we could open a PR to change |
In FIPS mode, md5 is not available. In such cases, fall back to sha1. See https://docs.python.org/3/library/hashlib.html for more info. fixes py-bson#85
In FIPS mode, md5 is not available. In such cases, fall back to sha1. See https://docs.python.org/3/library/hashlib.html for more info. fixes py-bson#85
The text was updated successfully, but these errors were encountered: