[pgp]: Remove pgp file encryption
Use the standard Gajim AES file encryption instead
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user