How to silence EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning when using Paramiko in Python

前端 未结 2 1779
难免孤独
难免孤独 2020-12-11 04:25

CryptographyDeprecationWarning:

encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use Ell

相关标签:
2条回答
  • 2020-12-11 04:36

    This has been fixed in Paramiko 2.5.0 already:
    https://www.paramiko.org/changelog.html#2.5.0
    https://github.com/paramiko/paramiko/pull/1379
    https://github.com/paramiko/paramiko/issues/1369

    0 讨论(0)
  • 2020-12-11 04:50

    I've had better success with:

    import warnings
    warnings.simplefilter("ignore", cryptography.utils.CryptographyDeprecationWarning)
    
    0 讨论(0)
提交回复
热议问题