2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 11:28:23 +00:00

pure python version of Fernet

This commit is contained in:
2025-08-28 21:03:48 +03:00
parent d24c992482
commit b982a0a3ca
7 changed files with 188 additions and 108 deletions

View File

@@ -3,9 +3,13 @@ import json
import os
#from cryptography.fernet import Fernet # fails after server upgrade due to wsgi bug
def Fernet(k):
pass
# until the rust/subinterpreter-wsgi/cryptography thing is fixed, we can use
# PyNaCl instead ? Or maybe a very old pure-python implementaiton instead.
# def Fernet(k):
# pass
from troggle.core.pyfernet import Fernet
from pathlib import Path
from django.conf import settings
@@ -91,9 +95,6 @@ def load_users():
"""
PARSER_USERS = "_users"
DataIssue.objects.filter(parser=PARSER_USERS).delete()
# because we can't use Fernet currently
return False
f = get_encryptor()