fernet

Error while upgrading Airflow 1.11 to 1.15

Error while upgrading Airflow 1.11 to 1.15 Question: Hi I’m planning to upgrade my Airflow version from 1.11 to 1.15 which is deployed in OpenShift. As there are very large numbers of DAG’s so I planned to upgrade in the bride release rather than going to Airflow 2.2 The error which I’m getting is most …

Total answers: 1

Fernet key must be 32 url-safe base64-encoded bytes

Fernet key must be 32 url-safe base64-encoded bytes Question: import certifi from pymongo import MongoClient import os import platform from cryptography.fernet import Fernet cluster = MongoClient("(database string)", tlsCAFile=certifi.where()) db = cluster["db"] pass_collection = db["password"] def clear(): if platform.system() == "Windows": os.system(‘cls’) else: os.system(‘clear’) while True: clear() print(”” /$$$$$$ /$$$$$$$ /$$ /$$ /$$__ $$| $$__ $$| …

Total answers: 1

Decrypt with Fernet, TypeError: token must be bytes

Decrypt with Fernet, TypeError: token must be bytes Question: Programming language: Python i have three files, one is to generate the key, 2nd is to encrypt, and the other is to decrypt.. the 1st and the 2nd files work.. but the decrypt file won’t work generate key file: from cryptography.fernet import Fernet def generate_key(): """ …

Total answers: 3