question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ipython does not work with python compiled with openssl in fips mode.

See original GitHub issue

in 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:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Carreaucommented, May 30, 2017

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 -)

0reactions
srinathgscommented, Jul 12, 2017

@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 changes md5 to sha1. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found