Пакет cryptography предоставляет криптографические рецепты и примитивы для разработчиков на Python.
from cryptography.fernet import Fernet
# Сохраните этот ключ в безопасном месте!
key = Fernet.generate_key()
f = Fernet(key)
token = f.encrypt(b"Hello!")
print(token)
print(f.decrypt(token))
#Python #Cryptography #Security #PythonDev #Encryption
https://github.com/pyca/cryptography
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - pyca/cryptography: cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. - pyca/cryptography
1 4⚡2👍2