Commit 20cdfa39 authored by senior's avatar senior

added passphrase field to unlock secret

parent d03ef1bd
......@@ -45,7 +45,8 @@ class XEP_0027(BasePlugin):
'gpg_home': '',
'use_agent': True,
'keyring': None,
'key_server': 'pgp.mit.edu'
'key_server': 'pgp.mit.edu',
'passphrase': ''
}
def plugin_init(self):
......@@ -110,7 +111,7 @@ class XEP_0027(BasePlugin):
'\n' + \
'%s\n' + \
'-----END PGP MESSAGE-----\n'
dec = self.gpg.decrypt(template % data)
dec = self.gpg.decrypt(template % data, passphrase=self.passphrase)
return dec.data
def verify(self, data, sig, jid=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment