Cryptographic recipes and primitives for Python applications
Cryptographic recipes and primitives for Python
cryptography$ python3 -c "from cryptography.hazmat.primitives.asymmetric import rsa; key = rsa.generate_private_key(public_exponent=65537, key_size=2048); print('Key generated')"$ python3 -c "from cryptography.fernet import Fernet; key = Fernet.generate_key(); f = Fernet(key); encrypted = f.encrypt(b'secret data'); print(encrypted)"$ python3 -c "from cryptography.hazmat.primitives import hashes; from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2; print('Password hashing available')"