Skip to content

TripleDES CryptographyDeprecationWarning from latest cryptography version #1

@der-dag

Description

@der-dag

Hi, thanks for providing puresnmp package, it is working great with my tplink switch. I just have a minor issue: After latest update of cryptography package I see all the time the following warning in my logs:

venv\Lib\site-packages\puresnmp_plugins\priv\des.py:90: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
  cipher = Cipher(algorithms.TripleDES(des_key), modes.CBC(init_vector))

Could the related import in des.py be fixed please or may I provide a pull request?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions