Skip to content

Paramiko does not work with pycryptodome #637

Closed

Description

@patrys

pycryptodome is a self-contained fork of pycrypto that also happens to be the only crypto package that can be installed on Windows using nothing but pip.

It's mostly compatible save for some APIs that pycryptodome's author considers insecure:

Paramiko verifies RSA signatures in an insecure way and it does that by means of some old, questionable parts of the PyCrypto API (specifically, the method verify of an RSA key object).

PyCryptodome is (fortunately or unfortunately, depending on how you look at it) not 100% compatible to PyCrypto: I explicitly removed or modified those few APIs that are inherently dangerous (like the verify method).

It would be great to be able to use Paramiko with pycryptodome even just for convenience it provides.

Activity

  1. bitprophet commented on Dec 11, 2015

    @bitprophet
    Member

    First I've heard of cryptodome, interesting. Thanks for the info!

    We're actually planning to move away from PyCrypto anyway in 2.0 (see #394) so I don't know that this will get much love. If someone provides a minimally-disruptive patch against, say, 1.13 and up (at least 1.15 and up) I might merge it so people on the 1.x line have the option of using cryptodome.

  2. johnthagen commented on Dec 14, 2015

    @johnthagen

    +1 for pycryptodome support, or also check out cryptography: https://cryptography.io/en/latest/

    Though it's likely cryptography would require more porting work. Looks like the cryptography folks already have a PR :).

  3. Legrandin commented on Dec 19, 2015

    @Legrandin

    FWIW, I have created a minimal patch for this in #646.

  4. bitprophet commented on Dec 20, 2015

    @bitprophet
    Member

    Let's roll this into #646 - either that'll get merged or the 2.0 switch off of pycrypto will "solve" it for enough users.

  5. added a commit that references this issue on Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions