diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-07-06 18:00:44 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-07-06 18:00:44 +0200 |
commit | 10574757e77bb828782b467656ce304f562417e5 (patch) | |
tree | ada0c5150d9d9ff1b415b04a4f354f91b933aef8 /memoryhole/openpgp.py | |
parent | aafba6d33f8af1d4967d069999b9fb0052ebcd65 (diff) |
[feat] add multipart/signed
Diffstat (limited to 'memoryhole/openpgp.py')
-rw-r--r-- | memoryhole/openpgp.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/memoryhole/openpgp.py b/memoryhole/openpgp.py index 3cefc3c..3318704 100644 --- a/memoryhole/openpgp.py +++ b/memoryhole/openpgp.py @@ -2,7 +2,7 @@ from zope.interface import Interface class IOpenPGP(Interface): - def encrypt(data, encraddr, singaddr): + def encrypt(data, encraddr): """ Encrypt and sign data. @@ -18,6 +18,18 @@ class IOpenPGP(Interface): """ pass + def sign(data): + """ + Sign data. + + :param data: data to be encrypted + :type data: str + + :return: signature + :rtype: str + """ + pass + def decrypt(data): """ Decrypt and verify data. |