[openpgp] Fix some bugs

- Dont use armor when encrypting
- Convert timestamp to int
- Fix getting the default trust
This commit is contained in:
Philipp Hörist
2018-08-31 15:14:08 +02:00
parent 7776ae0a59
commit fa9e8f7fa8
4 changed files with 5 additions and 5 deletions

View File

@@ -70,6 +70,7 @@ class PGPContext(gnupg.GPG):
result = super().encrypt(str(payload).encode('utf8'),
recipients,
armor=False,
sign=self._own_fingerprint,
always_trust=True,
passphrase=self._passphrase)
@@ -79,7 +80,7 @@ class PGPContext(gnupg.GPG):
else:
error = result.status
return str(result), error
return result.data, error
def decrypt(self, payload):
result = super().decrypt(payload,