From 8fbb31a928e05fba1e9c3290445bf757a58fc43a Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sat, 28 Nov 2020 22:22:01 +0100 Subject: [PATCH] removed the encryption logic. --- src/paperless/db.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/paperless/db.py b/src/paperless/db.py index 92275808b..5f476b5e7 100644 --- a/src/paperless/db.py +++ b/src/paperless/db.py @@ -17,16 +17,3 @@ class GnuPG: passphrase = settings.PASSPHRASE return cls.gpg.decrypt_file(file_handle, passphrase=passphrase).data - - @classmethod - def encrypted(cls, file_handle, passphrase=None): - - if not passphrase: - passphrase = settings.PASSPHRASE - - return cls.gpg.encrypt_file( - file_handle, - recipients=None, - passphrase=passphrase, - symmetric=True - ).data