From 8d427efa58fd3ebe04fe10a505963ec9c88af3df Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Fri, 3 Nov 2023 23:40:14 +0100 Subject: [PATCH 1/2] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index eb30c880..332534d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ git+https://github.com/silentsokolov/django-admin-rangefilter.git design-django-theme==1.6.4post4 django-unical-bootstrap-italia==1.2.0 git+https://github.com/UniversitaDellaCalabria/django-organizational-area.git -pillow +pillow>=10.0.1 # Rest git+https://github.com/UniversitaDellaCalabria/django-rest-framework.git@agid_oas3 From c378e5d7da850d9a5d4480ddc71aa23d562b9bdf Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Mon, 13 Nov 2023 11:55:43 +0100 Subject: [PATCH 2/2] fix: person id review --- ricerca_app/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ricerca_app/utils.py b/ricerca_app/utils.py index dca2ce9f..1f28944b 100644 --- a/ricerca_app/utils.py +++ b/ricerca_app/utils.py @@ -19,7 +19,9 @@ def encrypt(value): # pragma: no cover if not value: return None value = str(value) - return Fernet(settings.ENCRYPTION_KEY).encrypt(value.encode()).decode() + iv = b'\xbd\xc0,\x16\x87\xd7G\xb5\xe5\xcc\xdb\xf9\x07\xaf\xa0\xfa' + return Fernet(settings.ENCRYPTION_KEY)._encrypt_from_parts(value.encode(), 0, iv) + # return Fernet(settings.ENCRYPTION_KEY).encrypt(value.encode()).decode() def decrypt(value): # pragma: no cover