Use config.json key to decrypt

def decrypt(crypt_text) -> str:
        """ Use config.json key to decrypt """
        cipher = Fernet(current_app.config['KEY'])
        if not isinstance(crypt_text, bytes):
            crypt_text = str.encode(crypt_text)
        return cipher.decrypt(crypt_text).decode("utf-8")