2016-02-27 Pycrypto, pycryptodome, paramiko to open a SSH connectionΒΆ
The module pyensae
relies on paramiko which depends
on pycrypto.
As it is not maintained anymore, I tried to replace
by pycryptodome which
populate the same folder Crypto
during the installation.
It is a way to trick paramiko as the instruction
import Crypto
uses the installed module whether it is pycrypto
or pycryptodome. However, paramiko fails to open a SSH connection
with pycryptodome. It enters a function in
RSA.py
which tells explicitely that some functionalities will not be supported anymore:
# Methods defined in PyCrypto that we don't support anymore
def sign(self, M, K):
raise NotImplementedError("Use module Crypto.Signature.pkcs1_15 instead")
Recently, pycryptodome was removed into pycryptodomex which does not overwrite folder Crypto anymore. The last issue I had was to find a wheel for pycrypto for Python 3.5 on Windows. I did not find it so I made it: pycrypto-2.7a2-cp35-none-win_amd64.whl. I took it from avosirenfal/pycrypto which was recently updated and made the following changes fix setup.py and a C header to build pycrypto on Windows for Python 3.5 and some others disable a test not present in pycrypto 2.6.1. I did not use GMP or MPIR. Maybe next time.