cryptography is a package designed to expose cryptographic recipes and primitives to Python developers.
cryptography is a package designed to expose cryptographic recipes and primitives to Python developers. Our goal is for it to be your “cryptographic standard library”. It supports Python 2.6-2.7, Python 3.2+, and PyPy.
cryptography includes both high level recipes, and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests and key derivation functions. For example, to encrypt something with cryptography’s high level symmetric encryption recipe:
>>> from cryptography.fernet import Fernet >>> # Put this somewhere safe! >>> key = Fernet.generate_key() >>> f = Fernet(key) >>> token = f.encrypt(b"A really secret message. Not for prying eyes.") >>> token '...' >>> f.decrypt(token) 'A really secret message. Not for prying eyes.'
You can find more information in the documentation.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|cryptography-0.2.1-cp26-none-win32.whl (150.7 kB) Copy SHA256 hash SHA256||Wheel||cp26||Feb 22, 2014|
|cryptography-0.2.1-cp27-none-win32.whl (149.9 kB) Copy SHA256 hash SHA256||Wheel||cp27||Feb 22, 2014|
|cryptography-0.2.1-cp32-none-win32.whl (149.9 kB) Copy SHA256 hash SHA256||Wheel||cp32||Feb 22, 2014|
|cryptography-0.2.1-cp33-none-win32.whl (149.8 kB) Copy SHA256 hash SHA256||Wheel||cp33||Feb 22, 2014|
|cryptography-0.2.1.tar.gz (13.8 MB) Copy SHA256 hash SHA256||Source||None||Feb 22, 2014|