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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user