编程语言
首页 > 编程语言> > 如何在Python中使用Paramiko时沉默EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning

如何在Python中使用Paramiko时沉默EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning

作者:互联网

CryptographyDeprecationWarning:

encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.

解决方法:

已经在Paramiko 2.5.0中修复了这个问题:
https://www.paramiko.org/changelog.html#2.5.0
https://github.com/paramiko/paramiko/pull/1379
https://github.com/paramiko/paramiko/issues/1369

标签:paramiko,python,ssh,deprecation-warning
来源: https://codeday.me/bug/20191002/1840812.html