ipython does not work with python compiled with openssl in fips mode.
See original GitHub issuein fips mode, md5 is disabled. hence, ipython fails with
hash_digest = hashlib.md5(code.encode("utf-8")).hexdigest()
ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips
this error.
A fix is changing md5 to sha256 in IPython/core/compilerop.py
in this line. I can raise a pull request if the change looks fine.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
OpenSSL FIPS_mode_set not working in Python cryptography ...
I tried doing this with an OpenSSL installation built with FIPS object module and was able to successfully build the wheel but found...
Read more >How to enable FIPS mode for libcrypto and libssl packaged ...
I have a python application which comes packaged with Python and Libcrypto and LibSSL shared objects. The application was built with Openssl Fips...
Read more >Enabling Python 3 with OpenSSL/FIPS on Microsoft Windows
This blog will explain, step-by-step, how to enable Python 3 with the OpenSSL/FIPS standard on a Microsoft Windows platform so that any new ......
Read more >5.x Series — IPython 8.7.0 documentation
Make IPython work with OpenSSL in FIPS mode; change hash algorithm of input from md5 to sha1. (PR #10696). Clear breakpoints before running...
Read more >Jupyter Notebook files - GitLab Docs
Interactive features, including JavaScript plots, don't work when viewed in GitLab. Cleaner diffs and raw diffs. Version history.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why not “Just”
hex(abs(hash("""this is a string """)))
if it’s not cryptographically secure ?Edit: (
abs
because python can give you a negative hex number prefixed with-
)@ivanov: I somehow missed this thread because of the whole hoard of notifications from my github subscriptions.
I just verified
sha1
is available in FIPS mode, I have created a PR which changesmd5
tosha1
. Thanks.