Recommended Python cryptographic module?

后端 未结 8 1174
余生分开走
余生分开走 2020-12-13 00:50

I\'ve been exploring what cryptographic modules are available to Python, and I\'ve found 3: ezPyCrypt, yawPyCrypt and KeyCzar (which actually supports a few languages, but P

8条回答
  •  醉梦人生
    2020-12-13 00:59

    A new cryptography library for Python has been in rapid development for a few months now. The 0.2.1 release just happened a few days ago.

    https://cryptography.io/en/latest/

    It is mainly a CFFI wrapper around existing C libraries such as OpenSSL. It is distributed as a pure python module and supports CPython versions 2.6 - 3.3 as well as PyPy. It is also the upstream of the refactored pyOpenSSL package.

    It aims to expose high-level "recipes" that makes cryptography as idiot-proof as possible as well as primitives that should only be used with the appropriate caution. Symmetric algorithms (including AES-GCM) is very well supported and asymmetric algorithms such as RSA and DSA should be coming in the next few releases. Other notable algorithms that are supported includes PBKDF2, HKDF, HOTP and TOTP.

提交回复
热议问题