在 Python 中使用 Paramiko 时如何使 EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning 静音 [英] How to silence EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning when using Paramiko in Python
问题描述
密码学弃用警告:
encode_point 已在 EllipticCurvePublicNumbers 上弃用,并将在未来版本中删除.请使用 EllipticCurvePublicKey.public_bytes 获取压缩和未压缩的点编码.
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
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
这篇关于在 Python 中使用 Paramiko 时如何使 EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning 静音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!