cryptography is a Python library for Python 2.6+ & 3.2+ which exposes cryptographic recipes and primitives. It's available under either the Apache Software License, Version 2.0, or the BSD license.