Decode PGP decrypted messages

This commit is contained in:
Philipp Hörist 2018-03-31 01:18:04 +02:00
parent 644bdd9c76
commit e326aabf5f
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ if app.HAVE_GPG:
result = super(GnuPG, self).decrypt(data.encode('utf8'),
passphrase=self.passphrase)
return str(result)
return result.data.decode('utf8')
def sign(self, str_, keyID):
result = super(GnuPG, self).sign(str_.encode('utf8'), keyid=keyID, detach=True,