python-cryptography

Paramiko: “FutureWarning: CTR mode needs counter parameter”

六月ゝ 毕业季﹏ 提交于 2019-12-05 13:45:40
问题 I am trying to use Paramiko in Python2 for transferring files through SFTP with private SSH key but it displays this warning: /usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV self._cipher = factory.new(key, *args, **kwargs) In fact it sends the file to the server but can someone explain me what this warning means? Here is my code: t = paramiko.Transport((host, port)) key = paramiko.RSAKey.from_private_key_file("/path/to

cryptography AssertionError: sorry, but this version only supports 100 named groups

痞子三分冷 提交于 2019-12-04 16:35:32
问题 I'm installing several python packages via pip install on travis, language: python python: - '2.7' install: - pip install -r requirements/env.txt Everything worked fine, but today I started getting following error: Running setup.py install for cryptography Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-hKwMR3/cryptography/setup.py", line 334, in <module> **keywords_with_side_effects(sys.argv) File "/opt/python/2.7.9/lib/python2.7/distutils/core.py