You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
bitprophet commentedon Dec 11, 2015
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.
johnthagen commentedon Dec 14, 2015
+1 for
pycryptodomesupport, or also check outcryptography: https://cryptography.io/en/latest/Though it's likelyLooks like thecryptographywould require more porting work.cryptographyfolks already have a PR :).Legrandin commentedon Dec 19, 2015
FWIW, I have created a minimal patch for this in #646.
bitprophet commentedon Dec 20, 2015
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.
Updated openstack/openstack
Tolerate installation of pycryptodome
Updated openstack/openstack
Tolerate installation of pycryptodome
Updated openstack/openstack
IMPALA-7460 part 2: upgrade Paramiko and Fabric in extended test env
IMPALA-7460 part 2: upgrade Paramiko and Fabric in extended test env