Cryptography 是一个开发包,为 Python 开发者们提供了加密基元(cryptographic primitives)和秘诀(recipes)。它支持 Python 2.6-2.7、Python 3.3+ 和 PyPy。Cryptography 含有两个高层秘诀和低层接口来加密算法,比如说:对称密码算法、消息摘要和密钥派生成函数。 在使用 Cryptography 之前你必须解决以下问题:
Lack of PyPy and Python 3 support.
Lack of maintenance.
Use of poor implementations of algorithms (i.e. ones with known side-channel attacks).
Lack of high level, “Cryptography for humans”, APIs.
Absence of algorithms such asAES-GCM andHKDF.
AES-GCM
HKDF
Poor introspectability, and thus poor testability.
Extremely error prone APIs, and bad defaults.