[pgp]: Remove pgp file encryption

Use the standard Gajim AES file encryption instead
This commit is contained in:
Philipp Hörist
2025-11-01 23:34:55 +01:00
parent c3f8fc41e2
commit 416d040432
4 changed files with 0 additions and 65 deletions

View File

@@ -20,8 +20,6 @@
# You should have received a copy of the GNU General Public License
# along with PGP Gajim Plugin. If not, see <http://www.gnu.org/licenses/>.
from typing import Any
import logging
import os
from functools import lru_cache
@@ -65,9 +63,6 @@ class PGP(metaclass=Singleton):
return self._strip_header_footer(str(result)), error
def encrypt_file(self, file: Any, recipients: list[str]) -> gnupg.Crypt:
return self._pgp.encrypt_file(file, recipients)
def decrypt(self, payload: str) -> str:
data = self._add_header_footer(payload, "MESSAGE")
result = self._pgp.decrypt(data.encode("utf8"))