Cryptography

    cryptography is an actively developedlibrary that provides cryptographic recipes and primitives. It supportsPython 2.6-2.7, Python 3.3+, and PyPy.

    cryptography is divided into two layers of recipes and hazardous materials(hazmat). The recipes layer provides a simple API for proper symmetricencryption and the hazmat layer provides low-level cryptographic primitives.

    Example

    The GPGME Python bindings provide Pythonic access to , a C API for the entire GNU Privacy Guard suite of projects, including GPG, libgcrypt, and gpgsm (the S/MIME engine). It supports Python 2.6, 2.7, 3.4, and above. Depends on the SWIG C interface for Python as well as the GnuPG software and libraries.

    A more comprehensive GPGME Python Bindings HOWTO is available with the source, and an HTML version is available . Python 3 sample scripts from the examples in the HOWTO are also provided with the source and are accessible at gnupg.org.

    Included by default when compiling GPGME if the configure script locates a supported python version (which it will if it’s in $PATH during configuration).

    Example

    PyCrypto is another library,which provides secure hash functions and various encryption algorithms. Itsupports Python version 2.1 through 3.3.

    Example